Convert between VS2008 and 2010 projects, automatically

Tuesday, March 16, 2010 by Sebastiaan Janssen

Recently, I was told that I was being a bother and that I shouldn't develop in VS2010. Sure, the current RC is not the final version, but it's a release candidate, not much will change between now and the RTM (unless something really bad happens). But sometimes you need to conform and give people what they want. Back to VS2008 I went.

I love working with the latest and greatest though, so in a few spare hours just now I have been plotting and scheming and came up with a brilliant solution to thwart the command of my opresser, muhahaha!

Yes, I did it, I created a tool that can convert my complete VS2010 project back to a VS2008 project so that I can commit my code without my opponent knowing worked in VS2010.

This is done, very simply by replacing a few strings in the .sln and .csproj files. Now, this is a simple approach and it will throw away some information that is new to VS2010. However, it works for my purposes and I'm sharing it here so that people will be able to build upon it if they wish, or use it as is.

Mind you, there is NO GUARANTEES and I'm sure this is going to kill your project if you're not careful!

Was that proper warning? Okay, well here it is: two old-school batch files and a tool to do the string replacements (which I got from programmersheaven).

You can now download the fully automated VS2008 to VS2010 converter, enjoy.

Oh HAI Gerben, didn't know you were going to read this...

funny-pictures-cat-goes-on-the-naughty-list

Share this post:

| More

3 comment(s) for “Convert between VS2008 and 2010 projects, automatically”

  1. Gravatar of Raphael
    Raphael Says:
    Works like a charm! Thanks a lot for saving me some tedious string replacing.
  2. Gravatar of glen
    glen Says:
    It created all sorts of problems when trying to reload the VS2010 version - may have something to do with third part controls.
  3. Gravatar of MichaelMC
    MichaelMC Says:
    Thanks, but it doesn't work for me. The string replacements seem to have been done in the .csproj and .sln files, but my VS2008 (SP1) still barfs when I try to open either.

Leave comment:

Name (required):
E-mail (required, used to get your Gravatar):
Website:
Comment (required):
To make sure that you are human, please enter
both words below (required):