views:

172

answers:

1

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?

A: 

See answer 2 of this question. You will need to use devenv.com instead of devenv.exe in order to get any return values from devenv.

Jack