in

Platinum Bay

Peace, Love and Visual Studio Team System

.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!

 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews has been working as a developer for more than 8 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. He has firsthand developer experience with a variety of languages, including Java, VB, and .NET. Most recently, he has been immersed in SharePoint. He is currently employed at RDA Corporation in Philadelphia, PA, as a Software Engineer and a team member in the Architectural Guidance evangelism team. Steve is also an MTCS (x2), ICSOO, and .NET fanatic.
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.