1、用记事本打开 VS2008 的项目解决方案,也就是扩展名为 .sln 类型的文件,例如:
- Microsoft Visual Studio Solution File, Format Version 10.00
- # Visual Studio 2008
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDKTest", "SDKTest\SDKTest.vcproj", "{150C9040-C61A-4C2C-81A7-794455CE96B7}"
- EndProject
- Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {150C9040-C61A-4C2C-81A7-794455CE96B7}.Debug|Win32.ActiveCfg = Debug|Win32
- {150C9040-C61A-4C2C-81A7-794455CE96B7}.Debug|Win32.Build.0 = Debug|Win32
- {150C9040-C61A-4C2C-81A7-794455CE96B7}.Release|Win32.ActiveCfg = Release|Win32
- {150C9040-C61A-4C2C-81A7-794455CE96B7}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- EndGlobal
2、将此文本的最上面的两行:
- Microsoft Visual Studio Solution File, Format Version 10.00
- # Visual Studio 2008
修改为:
- Microsoft Visual Studio Solution File, Format Version 9.00
- # Visual Studio 2005
3、用记事本方式打开 sln 中所包含的所有工程,即以 .vcproj 为扩展名的文件类型,即sln文件中的第3行,如果包含多个.vcproj 类型的文件,则修改方法同下:
文件打开如下(文件过长,只选择了上面的一段):
- <?xml version="1.0" encoding="gb2312"?>
- <VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDKTest"
- ProjectGUID="{150C9040-C61A-4C2C-81A7-794455CE96B7}"
- RootNamespace="SDKTest"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
4、修改 .vcproj 文件中的:
- Version="9.00"
为:
- Version="8.00"
5、修改完之后,大家就可以用VS2005轻轻松松的打开这个工程了……