Not going into detail on why I want to do this, I need to execute a macro inside Visual Studio as part of our msbuild script. The macro performs some actions in the IDE and then calls Application.Quit() to close the IDE.
Do you know if there is a way to make devenv.exe return some error code or anything really that could let msbuild know that the exec devenv task completed unsuccessfully?