views:

17

answers:

1

In prior versions of MSBuild, you could set an environment variable named MSBUILDEMITSOLUTION to 1 to get an XML version of a solution (.sln) file that could be parsed. According to the MSBuild Team Blog, that's still in the version that ships with Visual Studio 2010, but it does not seem to be working.

Has anyone managed to get this working with MSBuild 4.0? If so, what is required?

(We use this to find and run convention-based unit tests with an NAnt script.)

+1  A: 

Hi, when you set that env var and build form the command line you should then see a .metaproj file. This is the file you are looking for. One thing to note, if you open a command prompt window then set the env var via Sysetm Settings then you will have to open a new command prompt.

Sayed Ibrahim Hashimi
Thanks - now it's working. Wish I knew why it wasn't last night. ;)
TrueWill