Set MSBuildEmitSolution=1
and then build from the command line. You should then see a MySolution.sln.metaproj file near MySolution.sln.
Notes:
- If you open a command prompt window, then set the env var via System Settings, you will have to open a new command prompt.
- You’d think you could also use
msbuild /p:MSBuildEmitSolution=1
, but you can’t.