用vs開啟更高版本的工程(如VS2010開啟VS2012的工程)
阿新 • • 發佈:2018-12-27
開啟檔案提示這個錯誤:
用記事本開啟用vs2010開發的.sln檔案,這是裡面的內容:
<span style="font-size:24px;">Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentManager", "StudentManager\StudentManager.csproj", "{A9341C8C-2E76-443F-A288-4B79C451ADFE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A9341C8C-2E76-443F-A288-4B79C451ADFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A9341C8C-2E76-443F-A288-4B79C451ADFE}.Debug|Any CPU.Build.0 = Debug|Any CPU {A9341C8C-2E76-443F-A288-4B79C451ADFE}.Release|Any CPU.ActiveCfg = Release|Any CPU {A9341C8C-2E76-443F-A288-4B79C451ADFE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal </span>
再開啟用vs2010開發工程的.sln檔案,這是裡面的內容:
<span style="font-size:24px;">Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "學生資訊管理系統", "學生資訊管理系統\學生資訊管理系統.csproj", "{C58EB708-71E8-4301-8207-40BB0590A131}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x86 = Debug|x86 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {C58EB708-71E8-4301-8207-40BB0590A131}.Debug|x86.ActiveCfg = Debug|x86 {C58EB708-71E8-4301-8207-40BB0590A131}.Debug|x86.Build.0 = Debug|x86 {C58EB708-71E8-4301-8207-40BB0590A131}.Release|x86.ActiveCfg = Release|x86 {C58EB708-71E8-4301-8207-40BB0590A131}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal </span>
兩個對比一下,改一下內容就行了:
將
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
改為:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
OK,可以打開了。。。