简体   繁体   中英

How to downgrade from Visual Studio 2012 project to Visual Studio 2008

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?

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 ..... 

除了提供的解决方案是正确的之外,我还要补充一点,你需要确保在App.config文件中没有类似于这个的代码,否则无论你做什么,你都无法运行项目:

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM