visual-studio 在 Visual Studio 2008 中打开 Visual Studio 2010 解决方案文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3850080/
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
opening visual studio 2010 solution files in visual studio 2008
提问by user465196
How would you open a Visual Studio 2010 .sln file in Visual Studio 2008?
您将如何在 Visual Studio 2008 中打开 Visual Studio 2010 .sln 文件?
Is it possible? Are there any workarounds?
是否可以?有什么解决方法吗?
回答by M4N
Have a look at these questions for information about how to convert the solution file between VS2008 and VS2010:
有关如何在 VS2008 和 VS2010 之间转换解决方案文件的信息,请查看这些问题:
But keep in mind, that once you have used some of the .NET 4 features (while in VS 2010), you will not be able to continue working with that solution in VS2008, since it does not support .NET 4. On the other hand, when using VS2010, you can still target .NET 3.5 or 2.0.
但请记住,一旦您使用了 .NET 4 的某些功能(在 VS 2010 中),您将无法在 VS2008 中继续使用该解决方案,因为它不支持 .NET 4。另一方面一方面,在使用 VS2010 时,您仍然可以针对 .NET 3.5 或 2.0。
回答by Jonathan
I think I need more information... but I will try it.
我想我需要更多信息……但我会尝试一下。
One option is to create a new project in VS 2008 and simply add the files to the project.
一种选择是在 VS 2008 中创建一个新项目并将文件添加到项目中。
Other option is to edit the .sln file and replace* Microsoft Visual Studio Solution File, Format Version 11.00.* with Microsoft Visual Studio Solution File, Format Version 10.00.
其他选项是编辑 .sln 文件并将* Microsoft Visual Studio 解决方案文件,格式版本 11.00.* 替换为Microsoft Visual Studio 解决方案文件,格式版本 10.00。
The open the .csproj file and replace with
打开 .csproj 文件并替换为
回答by Vinner
Open the solution file (.sln) with notepad and change Microsoft Visual Studio Solution File, Format Version 11.00
用记事本打开解决方案文件 (.sln) 并更改 Microsoft Visual Studio 解决方案文件,格式版本 11.00
Visual Studio 2010
视觉工作室 2010
to Microsoft Visual Studio Solution File, Format Version 10.00
到 Microsoft Visual Studio 解决方案文件,格式版本 10.00
Visual Studio 2008
视觉工作室 2008
Then open the solution file from visual studio 2008
然后从visual studio 2008打开解决方案文件

