Connect to a running instance of Visual Studio 2003 using COM, build and read output

Posted by codeape on Stack Overflow See other posts from Stack Overflow or by codeape
Published on 2009-06-03T09:43:16Z Indexed on 2012/10/14 9:38 UTC
Read the original article Hit count: 425

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about python

Related posts about visual-studio