打开Visual Studio 2012的项目在Visual Studio 2008 [英] open visual studio 2012 projects in visual studio 2008

查看:390
本文介绍了打开Visual Studio 2012的项目在Visual Studio 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写在C#中的Visual Studio 2012的的applcation,但我想打开该项目在另一个地方的VisualStudio 2008年我可怎么办呢?在拯救我必须做些什么?还是在oening中的VisualStudio 2008?

Im writing an applcation with C# in visual studio 2012 but i want to open that project in another place in visualstudio 2008. How i can do this? in saving i have to do something? Or in oening in visualstudio 2008?

推荐答案

因为我在我家的电脑坚持了VS 2008,我经常要做到这一点。

Since I am stuck with VS 2008 in my home computer, I regularly have to do this.

您可以修改您的解决方案文件(*的.sln)手动。大多数时候,你只需要改变的前两行定义VS版本的解决方案。

You can modify your solution file (*.sln) manually. Most of the time you just have to change the first two lines that define the VS version of the solution.

此链接

您可以编辑SLN和的csproj / vbproj文件用手试试这种方式,我用这个方法没有任何副作用。在SLN文件VS2010的第一行会说

You can edit the sln and csproj/vbproj files by hand and try that way, I've used this method with no side effects. In the sln file the first lines for VS2010 will say

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

和一个VS2008的解决方案:

and for a VS2008 solution:

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008

     

此外,在2010年的项目文件中,你可能会发现像

Also, in a 2010 project file you may find a section like

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

     

,这将需要修改为

which will need to be modified as

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />

     

由于只有这两个类型的变化,我能够开解和放大器;项目与VS 2008。

With only these 2 types of changes I was able to open the solution & projects with VS 2008.

这篇关于打开Visual Studio 2012的项目在Visual Studio 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆