转自:http://blog.csdn.net/chrisapple/archive/2008/05/18/2455262.aspx
VS2005转VS2008
用文本编辑器打开sln文件
Microsoft Visual Studio Solution File , Format Version 10.00 # Visual Studio 2008将以上内容修改后成为以下内容:
Microsoft Visual Studio Solution File , Format Version 9.00 # Visual Studio 2005用文本编辑器打开csproj文件,在文件的开头删除以下内容:
<? xml version="1.0" encoding="utf-8" ?>找到以下这个XML文件节点
< Project ToolsVersion ="3.5" DefaultTargets ="Build" xmlns ="http://schemas.microsoft.com/developer/msbuild/2003" >删除一个属性,成为以下内容:
< Project DefaultTargets ="Build" xmlns ="http://schemas.microsoft.com/developer/msbuild/2003" >找到以下这个XML文件节点
< Import Project ="$(MSBuildToolsPath)Microsoft.CSharp.targets" />经修改后,成为以下内容:
< Import Project ="$(MSBuildBinPath)Microsoft.CSharp.targets" />注意:要在VS2005下运行VS2008的项目一定不能使用到VS2008有,VS2005无的类和命名空间,同时第一次运行的时候要删除系统默认添加的新版的命名空间和类。
大功告成!
这样VS2005里就能运行VS2008项目了!
以上内容都只应用于WINFORM项目中,ASP.NET没有测试过,无法确定。