从VS2010降级到VS2008 [英] Downgrade from VS2010 to VS2008

查看:85
本文介绍了从VS2010降级到VS2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将我的vs2010项目降级到vs2008?

Hi, Is there a way to downgrade my vs2010 project to vs2008?

推荐答案

是的,这很容易做到.
在记事本中手动打开Visual Studio 2010 .sln文件.

通常,此文件的第一行是

Yes this can be done easily.
Open your Visual Studio 2010 .sln file manually in a notepad.

Usually the first line of this file will be

报价:

Microsoft Visual Studio解决方案文件,格式版本11.00

Microsoft Visual Studio Solution File, Format Version 11.00



将上面的文本更改为下面的文本并保存.



Change the above text to what is there below and save it.

报价:

Microsoft Visual Studio解决方案文件,格式版本10.00

Microsoft Visual Studio Solution File, Format Version 10.00



基本上,您使Visual Studio程序可以通过.sln知道版本.此后,Visual Studio 2008应该能够和平打开Visual Studio 2010项目.我最近在只有Visual Studio 2008的笔记本电脑上进行了此操作,但是其中一些项目是Visual Studio 2010版本.

如果上述解决方案不起作用,我想您将不得不采取艰难的方式(但可能是所有方式中最简单的一种)-
-要么创建一个全新的空白VS 2008解决方案,然后将所有VS 2010项目(.vbproj文件)重新导入到其中.
-另一种值得尝试的方法是仅删除InstallShield相关项目(.isproj和任何其他相关文件),并为VS 2008项目环境重新创建它们.



Basically you are enabling the Visual Studio Program to know the version through the .sln. After this Visual Studio 2008 should be able to open a Visual Studio 2010 project peacefully. I did this recently in a laptop where I had only Visual Studio 2008, but some of the projects were of the version Visual Studio 2010.

If the above solution does not work, I guess you will have to go the hard way (but probably the simplest of all ways) -
- Either create a fresh blank VS 2008 solution and reimport all your VS 2010 projects (.vbproj files) to it.
- Another way worth a try is to remove only the InstallShield related project (.isproj and any other related files), and have them newly created for your VS 2008 project environment.


此CodeProject本文提供针对此问题的自动化解决方案: SolutionConverter [
This CodeProject article offers the automated solution for this problem: SolutionConverter[^].



A bonus advice: take a look at any of my CodeProject articles. I always provided source code built to a range of platform versions + Mono. The trick is to provide different builds sharing the same source code. I think my approach is interesting.

Downgrade is especially important for publications like that.

—SA


这篇关于从VS2010降级到VS2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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