open project created VS 2010 to 2008

goodluck11 used Ask the Experts™
we have a project created on Vstudio 2010, trying to open on another machine with different paths and VS 2008, getting path settings errors, how can we open them ? thanks in advanced
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Depending on if they kept the solution file structure similar between 2008 and 2010, you just need to create an empty solution file in 2008 and look at the top identifier line in it, and copy it into the other solution file.

I however doubt they kept it the same since they were integrating a number of features into solution files.

You would be better off to create a new blank solution in 2008 and use "Add existing project" to reimport them. As long as you dont have any custom "solution" wide references this will work (no solution folders, server setups, etc).

It is probably the fastest and most direct route.
Systems Development / Support Specialist
If you are working with VS 2010 (any edition) and cannot open your 2010 solution on VS 2008, then just follow these 3 steps:
Open the solution file in your favorite text editor (example: Notepad++).
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, optional)
For <Project_name >.csproj/vbproj:
Open project file in your favorite text editor (example: Notepad++).
Find the following:
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="">.
Replace with:
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="">. (III)
That's it.
Now you can open your solution file on VS2008.
Reverse of this will enable VS2008 solution to open in VS2010.

After these changes, you may receive the below error:
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 <Import> declaration is correct, and that the file exists on disk.
OK   Cancel   

Open in new window

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial