I have a project in Visual Studio. How can I find out which .NET Framework version it's for?
问题:
回答1:
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.
回答2:
- VB
Project Properties -> Compiler Tab -> Advanced Compile Options button
- C#
Project Properties -> Application Tab
回答3:
The simplest way to find the framework version of the current .NET project is:
- Right-click on the project and go to "Properties."
- In the first tab, "Application," you can see the target framework this project is using.
回答4:
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>
回答5:
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 .
回答6:
It's as easy as in your Visual studio.
- go to the 4th menu option on top, 'website'.
- under websites go to option, 'start options'.
- under start options, go to 'build' option.
- change the target framework there to what so ever framework.
回答7:
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