简体   繁体   English

在Visual Studio 2008中打开Visual Studio 2010解决方案文件

[英]opening visual studio 2010 solution files in visual studio 2008

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? 有什么解决方法吗?

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。

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 Visual Studio 2010

to Microsoft Visual Studio Solution File, Format Version 10.00 到Microsoft Visual Studio解决方案文件,格式版本为10.00

Visual Studio 2008 Visual Studio 2008年

Then open the solution file from visual studio 2008 然后从Visual Studio 2008打开解决方案文件

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文件,并替换为

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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