Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to choose .NET version to compile project?

I have VS2005. How can I compile my project under specific version of .NET? I have installed 1.0, 2.0, 3.0 & 3.5. Tnx in advance.

like image 623
joycollector Avatar asked Jul 10 '09 08:07

joycollector


People also ask

What version of .NET core is my project?

Checking the Version of Your . Open your project's source folder and, in the address bar, type "cmd" and press Enter. It will open the command prompt with the project path. Execute the following command: dotnet --version . It will display your project's current SDK version,i.e., 2.1.


2 Answers

You can't I'm afraid. VS2005 only works with .NET framework 2.0. You'll need the appropriate versions of Visual Studio to work with other versions:

  • 1.0: Visual Studio .NET
  • 1.1: Visual Studio .NET 2003
  • 2.0: Visual Studio 2005 / 2008
  • 3.0 / 3.5: Visual Studio 2008
  • 4.0: Visual Studio 2010

jmservera points out that some 3.0 libraries are compatible with Visual Studio 2005. For example WCF is compatible, while LINQ isn't. Some of these require additional downloads, for example to use Windows Workflow Foundation comfortably in Visual Studio 2005, you need to install this extension.

like image 129
Ant Avatar answered Oct 10 '22 07:10

Ant


This is just for your information: If you are using VS version greater than or eqaul to 2008, you can do this by right clicking the project you want to build, click Properties, and select the Application tab (if not already selected). Change the value in the Target Framework dropdown list.

Target Framework
(source: scottgu.com)

like image 28
Kirtan Avatar answered Oct 10 '22 06:10

Kirtan