in

Platinum Bay

Peace, Love, and...

This Blog

Syndication


.NETicated

Visual Studio 2008 Solution File Compatibility

Leading up to the release of Visual Studio 2008, I heard a couple times that solutions would be compatible between Visual Studio 2005 and Visual Studio 2008. I thought this sounded great. To me this meant that I could open a Visual Studio 2005 solution without the annoying upgrade wizard, work on my web project in the new split view, and then still be able to open it up in Visual Studio 2005. Well, not quite. When I tested this, I do in fact get the upgrade wizard. It appears that while Visual Studio 2008 does have framework targeting, the solution files are not compatible. Bummercrapola.

Fortunately, there is a fairly easy solution. First, browse to your solution file in Windows Explorer, or by using the Open Project dialog in Visual Studio. Then drag the solution file to an empty area of the window to make a copy of it. Rename it to something like '<solution name> 2005.sln'. Rename the original file to something like '<solution name> 2008.sln. Now you can open your solution in either Visual Studio 2005 or Visual Studio 2008, by selecting the correct solution file.

There is a downside to this, however. If you add or remove a project from the solution, or make other solution level changes like hiding or showing the solution node, you have to remember to make them in both files.

[Updated: 4/18/2008]

Since posting this, I have learned the other downside to this is that in order to open and build the solution after using the above steps, you will need both Visual Studio 2005 and Visual Studio 2008 installed since some of the MSBuild target references are changed.

One workaround is to use Emmet Gray's utility to switch back and forth as necessary.  You can download it from here:
http://home.hot.rr.com/graye/Articles/ProjectConverter.htm

Published Dec 19 2007, 04:42 PM by Steve
Filed under:

Comments

April 18, 2008 4:12 PM

I've got a ProjectConverter utility that will convert solutons between the VS2005 and VS2008: home.hot.rr.com/.../ProjectConverter.htm

graye
 

April 18, 2008 7:03 PM

Cool utility!  Thanks for sharing!

 

September 4, 2009 11:19 AM

The page that hosted the utility at

home.hot.rr.com/.../ProjectConverter.htm is gone

Mandrake
 

November 9, 2009 6:22 AM

i have to make a project on visual studio can anybody help me out

saad
 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews is an independent consultant, INETA speaker, and Microsoft MVP for Visual Studio ALM. He has been working in technology for over ten years focusing on custom application development and Application Lifecycle Management. Steve is also Microsoft and IBM certified and a community fanatic having led sessions at nearly 100 events across North America. When he's not developing software solutions or engaging with the community about software technology, Steve is a closet singer and songwriter and plays the guitar and keys. Occasionally, Steve even gets to sleep. Occasionally.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.