Connect to a running instance of Visual Studio 2003 using COM, build and read output
- by codeape
For Visual Studio 6.0, I can connect to a running instance like:
o = GetActiveObject("MSDev.Application")
What prog ID do I use for Visual Studio 2003?
How do I execute a 'Build Solution' once I have the COM object that references the VS2003 instance?
How do I get the string contents of the build output window after executing the build solution command?
Yes, I am aware that I can build a solution from the command line. But in this case, I need to connect to a running instance of Visual Studio.
EDIT: found and submitted an answer, see below.