Q:

Use MSBuild to upgrade and build a sln

I'm trying to write a script to automatically download and build the external dependencies for a project I'm working on via the command line. 
One of the projects I need only provides VS6, VS2005, and VS2008 solutions, however I need the project to be built with VS2010. 
If I were to open any of those projects in VS2010 they would be upgraded and I could build that, however since I want this to be completely automatic, I was wondering if there was a way that the same upgrade could be done via MSBuild. 
I tried just using the VS2010 Command Line to build the VS2008 sln file, but it still built it using the VS2008 compiler rather than using the VS2010 one. 
Does anyone know if it's possible to do this using MSBuild? 
Thanks. 

A:

It looks like devenv.exe /Upgrade will do the silent upgrade for you.  I just tested this with the sourcecode for greenshot.  Its really fast.