Click here to Skip to main content
11,583,555 members (66,435 online)
Click here to Skip to main content

Tagged as

Converting VS2010 Solution to VS2008

, 9 Feb 2012 CPOL 121.6K 38
Rate this:
Please Sign up or sign in to vote.
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 <PROJECT_NAME>.sln:

  1. Open the solution file in your favorite text editor (example: 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, optional)

For <Project_name >.csproj/vbproj:

  1. Open project file in your favorite text editor (example: Notepad++).
  2. Find the following:
    <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">.
    Replace with:
    <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">. (III)
That's it.
Now you can open your solution file on VS2008.
Reverse of this will enable VS2008 solution to open in VS2010.

EDIT


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

Good luck with it.

Regards,
ABHISHEK DEY

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

GPUToaster™
Other
India India
http://gputoaster.wordpress.com/about

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 5 Pin
srilekhamenon13-Mar-15 23:00
membersrilekhamenon13-Mar-15 23:00 
GeneralMy vote of 1 Pin
Dinesh9217-Dec-13 17:47
memberDinesh9217-Dec-13 17:47 
GeneralMy vote of 4 Pin
Member 1017917429-Jul-13 23:07
memberMember 1017917429-Jul-13 23:07 
QuestionIt's helpful but... Pin
Member 1017917429-Jul-13 23:06
memberMember 1017917429-Jul-13 23:06 
GeneralMy vote of 5 Pin
NaVeN Kumar7-May-13 23:14
memberNaVeN Kumar7-May-13 23:14 
GeneralMy vote of 4 Pin
mohammad sharegh18-Apr-13 1:55
membermohammad sharegh18-Apr-13 1:55 
GeneralRe: I agree that many have appreciated it. Don't know why. My po... Pin
pietvredeveld10-Feb-12 21:18
memberpietvredeveld10-Feb-12 21:18 
GeneralRe: I agree that many have appreciated it. Don't know why. My po... Pin
rakesh19889-Oct-12 2:32
memberrakesh19889-Oct-12 2:32 
GeneralRe: I agree that many have appreciated it. Don't know why. My po... Pin
GPUToaster™6-Nov-12 19:42
memberGPUToaster™6-Nov-12 19:42 
GeneralReason for my vote of 5 good one. Pin
nikhi _singh27-Feb-12 18:45
membernikhi _singh27-Feb-12 18:45 
GeneralSince Visual Studio 2010 works much better than 2008 (assumi... Pin
Philippe Mori10-Feb-12 13:23
memberPhilippe Mori10-Feb-12 13:23 
GeneralRe: Since Visual Studio 2010 works much better than 2008 (assumi... Pin
Brook Monroe21-Jan-13 4:11
memberBrook Monroe21-Jan-13 4:11 
Assume for the moment that the project in which you're interested is VS2010 but your company build servers only support VS2008. We can argue all day about whether that's good or bad, but in some cases, that's just what is, and many developers don't have the luxury of telling the IT build group what it must support. Therefore project rollbacks to support older versions of VS are necessary.
GeneralReason for my vote of 2 Nice to know but seems useless to me... Pin
pietvredeveld9-Feb-12 10:23
memberpietvredeveld9-Feb-12 10:23 
GeneralRe: Hi pietvredeveld, I appreciate what you think. FYI This tric... Pin
GPUToaster™10-Feb-12 5:37
memberGPUToaster™10-Feb-12 5:37 
GeneralReason for my vote of 5 nice one.I was really searching for ... Pin
nikhi _singh8-Feb-12 23:11
membernikhi _singh8-Feb-12 23:11 
GeneralAdded a fix in your Tip/Trick, do further changes if you wan... Pin
thatraja24-Jan-12 19:20
mvpthatraja24-Jan-12 19:20 
GeneralRe: Thanks thatraja. Pin
GPUToaster™24-Jan-12 20:07
memberGPUToaster™24-Jan-12 20:07 
GeneralReason for my vote of 1 Excellent !!! Pin
Member 189751120-Dec-11 23:43
memberMember 189751120-Dec-11 23:43 
GeneralRe: You might want to change your vote to 4/5. I am guessing its... Pin
GPUToaster™24-Jan-12 20:08
memberGPUToaster™24-Jan-12 20:08 
GeneralReason for my vote of 5 Reason for vote of 5 Nice tips. Like... Pin
RaviRanjankr15-Dec-11 10:20
mvpRaviRanjankr15-Dec-11 10:20 
GeneralReason for my vote of 5 Nice! Pin
normsall14-Dec-11 3:21
membernormsall14-Dec-11 3:21 
Generalhi i tried this .. and my solution file which was unrecognis... Pin
gayathri 216-Nov-11 0:45
membergayathri 216-Nov-11 0:45 
Generalsuperb Pin
SanjeevSingh15-Nov-11 0:22
memberSanjeevSingh15-Nov-11 0:22 
GeneralCan you be more specific? That would help us in figuring out... Pin
GPUToaster™6-Nov-11 18:27
memberGPUToaster™6-Nov-11 18:27 
Generalhi friends i tried this but i could not convert from vs2010... Pin
MalarGayu3-Nov-11 15:15
memberMalarGayu3-Nov-11 15:15 
GeneralRe: Can you be more specific? That would help us in figuring out... Pin
GPUToaster™7-Nov-11 18:07
memberGPUToaster™7-Nov-11 18:07 
GeneralMy 5 Pin
theanil28-Oct-11 8:05
membertheanil28-Oct-11 8:05 
Generalgood Dear thank you Pin
ashishjoshi11-Oct-11 22:51
memberashishjoshi11-Oct-11 22:51 
GeneralReason for my vote of 4 Good Article Pin
mandar130515-Aug-11 21:58
membermandar130515-Aug-11 21:58 
GeneralWill this work if you have already coded against .net framew... Pin
spacepimp4-Aug-11 6:55
memberspacepimp4-Aug-11 6:55 
GeneralRe: Yes, But you need to change &lt;targetframeworkversion&gt;v... Pin
GPUToaster™4-Sep-11 19:01
memberGPUToaster™4-Sep-11 19:01 
GeneralReason for my vote of 5 Very helpful. Pin
ChrisBennet15-Mar-11 9:03
memberChrisBennet15-Mar-11 9:03 
GeneralReason for my vote of 5 I have searched for this, Fine one Pin
thatraja5-Mar-11 17:14
mvpthatraja5-Mar-11 17:14 
GeneralReason for my vote of 4 this is nice one man Pin
Pranay Rana15-Dec-10 20:18
memberPranay Rana15-Dec-10 20:18 
Generalhey this is nice Pin
Pranay Rana15-Dec-10 20:18
memberPranay Rana15-Dec-10 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 9 Feb 2012
Article Copyright 2010 by GPUToaster™
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid