Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which .NET framework version will be used when there are many installed?

If I have multiple versions of the .NET framework installed on a machine, will the newest version be used?

Will a .NET app use a specific version of the framework depending on how it has been programmed?

like image 505
Craig Johnston Avatar asked Feb 02 '11 07:02

Craig Johnston


People also ask

Can I have multiple version of .NET framework installed?

Microsoft designed the . NET Framework so that multiple versions of the framework can be installed and used at the same time. This means that there will be no conflict if multiple applications install different versions of the . NET framework on a single computer.

Which version of .NET framework should I use?

A cross-platform and open-source framework, . NET Core is best when developing applications on any platform. . NET Core is used for cloud applications or refactoring large enterprise applications into microservices.

Do I need all versions of .NET Framework?

Whether you need any of them or not depends on what you're running. Most applications out there are still built for . NET 2 to 3.5 so installing 3.5 will cover you for that. I would recommend installing 4 as looking forwards that's what Microsoft want people to be using.


2 Answers

.NET applications specify via their CLR header what version of the runtime they require in order to run. The ability to build and run against different versions of .NET is supported in Visual Studio through the multi-targeting feature.

like image 186
Chris Schmich Avatar answered Nov 15 '22 06:11

Chris Schmich


It's a property of each project (csproj).
You can modify it in the "Application" tab, under "Target framework"

like image 20
kerrubin Avatar answered Nov 15 '22 08:11

kerrubin