[英]How to downgrade from Visual Studio 2012 project to Visual Studio 2008
I am working with C# Windows application . 我正在使用C#Windows应用程序。 I've recently converted a Visual Studio 2008 project to the new Visual Studio 2012 project . 我最近将Visual Studio 2008项目转换为新的Visual Studio 2012项目。 Now I have to downgrade this project to Visual Studio 2008 . 现在我必须将此项目降级为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 ): 那么2012年与2010年兼容,我不确定这会有效但我发现这个如何从2010年回到2008年,希望它适合你2012年( 原始链接 ):
Make back up of your .sln file 备份.sln文件
Open your VS 2010 .sln in notepad. 在记事本中打开VS 2010 .sln。
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 将版本11.0更改为版本10.0,将Visual Studio 2010更改为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. 在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。
Go to: Project Properties->Configuration Properties->General->Platform Toolset. 转至:项目属性 - >配置属性 - >常规 - >平台工具集。 Change to different Visual Studio version. 更改为不同的Visual Studio版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.