Vs2008转vs2005

Vs2008兼容vs2005 的项目;但vs2008的项目却不能放在vs2005中,

将vs2008 项目 转换成到2005 下的解决方法:

总共分为两个步骤:

l 修改解决方案文件:解决方案.sln

Microsoft Visual Studio Solution File, Format Version 10.00[w1]

# Visual Studio 2008[w2]

l 修改项目文件:项目.csproj

1、 <Project ToolsVersion="3.5" [w3] DefaultTargets="Build"

xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

2、 <Import Project="$(MSBuildTools[w4] Path)Microsoft.CSharp.targets" />

通过以上步骤就可以用Vs2005打开vs2008下的项目,不过vs2008下使用的类库跟vs2005的类库是有区别的:

1、using System.Linq;[w5]

2、 移除包含!号的引用

--------------------------------------------------------------------------------

[w1]10.00-->9.00

[w2]2008-->2005

[w3]ToolsVersion="3.5"删除

[w4]Tools-->Bin

[w5]删除此句

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/adrain_sengtang/archive/2008/10/29/3173247.aspx