Tuesday, January 31, 2012

Converting VS2010 Solution to VS2008

If you are working with VS 2010 (any Edition) and cannot open your 2010 solution on VS 2008 then just follow these 3 Steps:
 
For .sln:
 
1. Open the solution file in your favorite text editor (ex: notepad++).
2. Find the Following:
Microsoft Visual Studio Solution File, Format Version 11.00.
# Visual Studio 2010
Replace with:
Microsoft Visual Studio Solution File, Format Version 10.00. (I)
# Visual Studio 2008. (II, optinal)
 
For .csproj/vbproj:
 
1. Open project file in your favorite text editor (ex: notepad++).
2. Find the Following:
.
Replace with:
. (III)



---------------------------
Microsoft Visual Studio
---------------------------
Unable to read the project file 'XXX.csproj'. 
 
C:\Project path\XXX.csproj(89,11): The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.

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

To fix this error just change the VS version(v10.0 to v9.0) in your .csproj/vbproj file, that's all.

No comments: