How to find the .NET framework version of a Visual Studio project?

后端 未结 9 1571
生来不讨喜
生来不讨喜 2020-12-04 08:50

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

相关标签:
9条回答
  • 2020-12-04 09:31

    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.
    0 讨论(0)
  • 2020-12-04 09:35

    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>

    0 讨论(0)
  • 2020-12-04 09:37

    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.

    0 讨论(0)
提交回复
热议问题