142

I have a project in Visual Studio. How can I find out which .NET Framework version it's for?

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
Novice Developer
  • 4,189
  • 11
  • 35
  • 42

11 Answers11

118

It depends which version of Visual Studio:

  • In 2002, all projects use .Net 1.0
  • In 2003, all projects use .Net 1.1
  • In 2005, all projects use .Net 2.0
  • In 2008, projects use .Net 2.0, 3.0, or 3.5; you can change the version in Project Properties
  • In 2010, projects use .Net 2.0, 3.0, 3.5, or 4.0; you can change the version in Project Properties
  • In 2012, projects use .Net 2.0, 3.0, 3.5, 4.0 or 4.5; you can change the version in Project Properties

Newer versions of Visual Studio support many versions of the .Net framework; check your project type and properties.

SLaks
  • 837,282
  • 173
  • 1,862
  • 1,933
81

VB Proj

Project Properties -> Compiler Tab -> Advanced Compile Options button

C# Proj

Project Properties -> Application Tab

KyleMit
  • 35,223
  • 60
  • 418
  • 600
Jonathan Allen
  • 66,142
  • 66
  • 246
  • 435
47

The simplest way to find the framework version of the current .NET project is:

  1. Right-click on the project and go to "Properties."
  2. In the first tab, "Application," you can see the target framework this project is using.
bubbleking
  • 2,977
  • 3
  • 26
  • 45
Chetan S
  • 875
  • 1
  • 11
  • 20
10

You can also search the Visual Studio project files for the XML tag RequiredTargetFramework. This tag seems to exist on .NET 3.5 and higher.

For example: <RequiredTargetFramework>3.5</RequiredTargetFramework>

uglydawg
  • 181
  • 2
  • 4
6

Simple Right Click and go to Properties Option of any project on your Existing application and see the Application option on Left menu and then click on Application option see target Framework to see current Framework version .

404 Not found
  • 201
  • 3
  • 7
4

With Respect to .NET Framework 4.6 and Visual Studio 2017 you can take the below steps:

  1. On the option bar at the top of visual studio, select the 4th option "Project" and under that click on the last option which says [ProjectName]Properties.Click on it & you shall see a new tab has been opened.Under that select the Application option on the left and you will see the .NET Framework version by the name "Target Framework".
  2. Under Solution Explorer's tab select your project and press Alt + Enter.
  3. OR simply Right-click on your project and click on the last option which says Properties.
Tahir77667
  • 1,878
  • 15
  • 13
2

It's as easy as in your Visual studio.

  1. go to the 4th menu option on top, 'website'.
  2. under websites go to option, 'start options'.
  3. under start options, go to 'build' option.
  4. change the target framework there to what so ever framework.
nikoshr
  • 32,446
  • 32
  • 90
  • 104
2
  1. In Solution Explorer, open the context menu for the project that you want to change, and then choose Properties.
  2. In the left column of the Properties window, choose the Application tab.
  3. In the Target Framework list, you will see the current version of .NET framework on the project. You may also change the framework from there.
ndreisg
  • 1,019
  • 10
  • 31
Kerioh
  • 29
  • 3
0

You can't change the targeted version of either Windows or the .NET Framework if you create your project in Visual Studio 2013. That option is not available anymore.

Look that link from Microsoft: http://msdn.microsoft.com/en-us/library/bb398202.aspx

Mellina
  • 17
  • 2
  • 2
    Unless I'm misunderstanding you, this is absolutely not true. The note you're referencing only applies to Windows Store apps. Changing the targeted version of the .Net Framework is possible (and commonly done!) for the lion's share of project types. – bubbleking Dec 19 '17 at 16:15
0

Open packages.config file all detail about packages and their versions which are installed into the current project listed there. follow given shot

here all installed packages

0

Updating for 2022...

refer to: https://docs.microsoft.com/en-us/dotnet/core/install/windows?tabs=net60

.NET SDK version Visual Studio version
6.0 Visual Studio 2022 version 17.0 or higher.
5.0 Visual Studio 2019 version 16.8 or higher.
3.1 Visual Studio 2019 version 16.4 or higher.
3.0 Visual Studio 2019 version 16.3 or higher.
2.2 Visual Studio 2017 version 15.9 or higher.
2.1 Visual Studio 2017 version 15.7 or higher.