How to downgrade from Visual Studio 2012 project t

2019-01-05 04:09发布

I am working with C# Windows application . I've recently converted a Visual Studio 2008 project to the new Visual Studio 2012 project . Now I have to downgrade this project to Visual Studio 2008 . Is there any way to downgrade this project?

5条回答
仙女界的扛把子
2楼-- · 2019-01-05 04:26

In addition to the solution provided which is correct, I will add that you need to make sure you don't have code similar to this one in the App.config file, otherwise no matter you will do, you will not be able to run the project(s):

<startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup>

查看更多
Lonely孤独者°
3楼-- · 2019-01-05 04:33

In Visual Studio 2012, change all projects to target .NET Framework 3.5.

In Visual Studio 2008, create a blank solution and then add all .csproj/vbproj to it.

There is no way to go back for .cxxproj Visual C++ projects to Visual Studio 2008.

查看更多
Lonely孤独者°
4楼-- · 2019-01-05 04:39

Well 2012 is compatible with 2010, i am not sure this would work but i found this on how to go back from 2010 to 2008, hope it works for you with 2012 (Original Link):

  1. Make back up of your .sln file

  2. Open your VS 2010 .sln in notepad.

    It should look something like this:

    Microsoft Visual Studio Solution File, Format Version 11.00 
    # Visual Studio 2010  Project("{FAE04EC0-3 ......
    
  3. Change the Version 11.0 to Version 10.0 and the Visual Studio 2010 to 2008

    It should look something like this:

    Microsoft Visual Studio Solution File, Format Version 10.00 
    # Visual Studio 2008  Project("{FAE04EC0-3 .....
    
查看更多
Evening l夕情丶
5楼-- · 2019-01-05 04:43

Go to: Project Properties->Configuration Properties->General->Platform Toolset. Change to different Visual Studio version.

查看更多
登录 后发表回答