如果在vs2005+补丁后生成的解决方案文件.sln无法双击打开工程时可以使用文本编辑器打开.sln文件在第二行加入“# Visual Studio 2005”保存即可,例如: Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aa", "driver\aa.vcproj", "{6A0A9D07-FD4C-4D7C-805D-48D25FB4BE6C}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aaApp", "app\aaApp.vcproj", "{99FD6FD2-86EB-4177-BC0F-00F692130E58}" EndProject ....
根治方法: 打
开\DriverStudio\DriverWizard\Templates目录的WdmDriver.sln.net文件找到“Microsoft
Visual Studio Solution File, Format Version 9.00”这一行,在其后下一行加入“# Visual
Studio 2005”保存即可,以后用DriverWizard生成的工程就可以正常双击打开了。
修改后象这样: ... $$FILE $$ProjectName$$.sln $$IFDEF GENERATE_SLN2002 Microsoft Visual Studio Solution File, Format Version 7.00 $$ENDIF $$IFDEF GENERATE_SLN2003 Microsoft Visual Studio Solution File, Format Version 8.00 $$ENDIF $$IFDEF GENERATE_SLN2005 Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 $$ENDIF Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "$$ProjectName$$", "Driver\$$ProjectName$$.vcproj", "$$ProjectGuid$$" EndProject