C# 如何从 Visual Studio 2012 项目降级到 Visual Studio 2008
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13507901/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to downgrade from Visual Studio 2012 project to Visual Studio 2008
提问by lelewin
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?
我正在使用 C# Windows 应用程序。我最近将 Visual Studio 2008 项目转换为新的 Visual Studio 2012 项目。现在我必须将这个项目降级到 Visual Studio 2008 。有没有办法降级这个项目?
采纳答案by CloudyMarble
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):
好吧,2012 与 2010 兼容,我不确定这是否可行,但我在如何从 2010 回到 2008 中找到了这个,希望它适用于 2012(原始链接):
Make back up of your .sln file
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 ......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 .....
备份您的 .sln 文件
在记事本中打开 VS 2010 .sln。
它应该是这样的:
Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-3 ......将版本 11.0 更改为版本 10.0,将 Visual Studio 2010 更改为 2008
它应该是这样的:
Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{FAE04EC0-3 .....
回答by Ray Cheng
回答by Lex Li
In Visual Studio 2012, change all projects to target .NET Framework 3.5.
在 Visual Studio 2012 中,将所有项目更改为面向 .NET Framework 3.5。
In Visual Studio 2008, create a blank solution and then add all .csproj/vbproj to it.
在 Visual Studio 2008 中,创建一个空白解决方案,然后将所有 .csproj/vbproj 添加到其中。
There is no way to go back for .cxxproj Visual C++ projects to Visual Studio 2008.
.cxxproj Visual C++ 项目无法返回到 Visual Studio 2008。
回答by XMight
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):
除了提供的解决方案是正确的,我还要补充一点,你需要确保你的App.config文件中没有类似这个的代码,否则不管你怎么做,你都将无法运行项目:
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
回答by Mostafa Farahani
Go to: Project Properties->Configuration Properties->General->Platform Toolset. Change to different Visual Studio version.
转到:项目属性->配置属性->常规->平台工具集。更改为不同的 Visual Studio 版本。

