Does visual studio require .net framework - c#

I'm new to .net framework. Have few queries.
Does visual studio requires .net framework to be pre installed in the system.
Does visual studio comes with .net framework within it. So no need to install separately.
If .net framework comes within visual studio, is it different version for different vs versions.
I have seen that in application tab we have target framework, may I know from where all these different versions of .net framework visual studio has.
Application developed with one version say 4.5 , can this run on 4.0 and do we have to modify this version first to 4.0 and then run it.

When you're installing VS it's automatically install default version of .net framework for current Visual Studio , but you can additionally install any other versions if you need, it's like an additional nozzle to the vacuum cleaner :-)

Related

.NET Core not showing in target framework dropdown for visual studio 2022

I have installed .NET core 3.1 and verified i can run .NET core 3.1 apps on my machine however when i go to create a new project the dropdown for target frameworks only allows .NET 6.0. I am using visual studio 2022. I am using visual studio 2019 on my laptop and i can add .NET core projects just fine.
Has anyone ran into this?
Open Visual studio installer from start menu
Select Modify from Visual Studio that you want to add
in individual components select .net core or framework that you want to add to your visual studio version
Create the app in either 5 or 6. Then in the Application properties change the Target Framework to .Net 3.1.
Long term support is limited for anything before .Net 5, so they are not making it an option on new projects and directing to the newer versions.
I'm using VS2022 and was facing the same issue. I installed the .NET SDK 3.1.416 from here and restarted the VS. I am now able to create project with .NET core 3.1 target framework.

How to upgrade my Visual Studio 2012 from .NET Framework 4.5 to .NET Framework 4.7.2?

I am using a Visual Studio 2012. It looks like this when I start it:
This is the look of Visual Studio 2012 when it is finally opened:
I am planning to make a Discord chatbot using the C# programming language. But before I will do that, I need to search on the Internet. This is the site I will use as a guide:
This is the link of the site (as shown on the above picture) I'm gonna use as a guide:
(Link of VaporComplete)
Now that I have read the entire webpage, I started to follow what is written by the author of the site.
All goes well when I stumbled upon this part:
The author of the website had this so-called .NET Framework 4.6.1, which I think, a foundation, or more accurately, a "clean piece of long bond paper" in my opinion, to create a Discord chatbot.
But when I tried to follow the author's way, I wasn't able to follow it because my Visual Studio 2012 has this so-called .NET Framework 4.5, and the author's got a Visual Studio 201? (I do not know the version of Visual Studio the author is using) having .NET Framework 4.6.1.
When I tried to upgrade my Visual Studio 2012's .NET Framework to 4.7.2 in the belief that I could make a C# Discord chatbot while having the same interface as the author's (see below)...
...it didn't upgrade.
I still see the same .NET Framework 4.5 in my Visual Studio 2012. The upgrade didn't work even if I downloaded the .NET Framework 4.7.2 from this website and restarted my slow laptop so it can be installed.
When I Googled for the solution for this upgrade problem, all they ever show was to look into this...
...implying that I needed to be very smart in order for my Visual Studio 2012 to be upgraded from .NET Framework 4.5 to .NET Framework 4.7.2.
In my Visual Studio 2012, there is a myth/belief/superstition that if I download and install a higher version .NET Framework, it will just magically appear on my Visual Studio 2012 and I just choose it in the Properties panel like this one below on my Visual Studio 2012...
...which, if I continued the process, confirms that upgrading a particular .NET Framework described in the above method is a myth because it
doesn't work.
My question is:
How to upgrade my Visual Studio 2012 from .NET Framework 4.5 to .NET Framework 4.7.2 smoothly, correctly, and without any concerns and problems?
Unfortunately, it is not possible to create .NET Core projects using Visual Studio 2012. Nowadays, platform version and Visual Studio became more separate, but it is only from Visual Studio 2017.
You must download and install the Microsoft .NET Developer Pack

Using SSH.NET on C# Console application in Visual Studio 2008 and .NET Framework 3.5

I have a Visual Studio 2008 project in C# with .NET Framework 3.5 and I would like to use SSH.NET library but I see no binaries there for last stable release 2016.0.0.
Also in home page says it has been moved to here. Once I go to this page, I see three branches, develop, master and sftpfilestream, so which one I have to take which is compatible with .NET Framework 3.5 (My project uses .NET Framework 3.5 on Visual Studio 2008)?
Also If I downloaded any of them, once unzipped I do not see any DLL, only projects. Well, in fact, I prefer to reference a project within mine in order to use it, but by curiosity, where are the binaries (DLLs)? and which project is the correct I have to add to mine for .NET Framework 3.5?

.NET Framework 2.0 and 4.0 Visual Studio Toolbox item

I want to install two different version of my WinForms custom control in the Visual Studio Toolbox: the .NET Framework 2.0 version and the .NET Framework 4.0 one. I found this professional solution http://vstudiotoolbox.codeplex.com/ but selecting the proper .NET Framework is not covered.
Where can I learn more?
Thanks.
http://www.lextm.com/2012/08/how-to-install-custom-controls-to-visual-studio-part-i/
This covers what is required to install a .NET 2 control. If you want to install .NET 4's, you can follow
http://www.lextm.com/2012/08/how-to-install-custom-controls-to-visual-studio-part-ii/
My open source project is a sample for you to review how to perform the needed steps,
https://github.com/lextm/actionlistwinforms
Inno Setup is used to author the installer, but the tricks should apply to other installer techniques.

visual studio 2012 .net frame work compatability

Can you please help me with this. Am I able to run .net 2.0 in visual studio 2012? Can you direct me to the diagrams that show the framework compatibility?
Yes. You are able to build .Net v2.0 projects in the Visual Studio 2012.
Here goes the list of all available versions of .Net Framework:
http://pasteboard.s3.amazonaws.com/images/uWRTNBl.png
Framework targeting does not guarantee that your application will run correctly. You must test your application to make sure it runs against the targeted version. You cannot target framework versions that are earlier than the .NET Framework 2.0.
http://msdn.microsoft.com/en-us/library/bb398197(v=vs.110).aspx
In short, yes, you can target .NET 2.0 - and no, there's no master list of compatibility issues.

Categories