dte

How do I set the Project's 'Start External Program' setting programmatically?

I have an IWizard which gets access to a Project variable. What code do I need to write to set the 'Start External Program' value in project properties? ...

Get active Visual Studio object

Hi, using this code I get the object representing Visual Studio: var dte2 = Marshal.GetActiveObject("VisualStudio.DTE.10.0") as DTE2; However, when I have multiple instances of VS opened, this returns any instance of VS, not the one I am currently executing the code from. I am not within an add-in so I don't have access to the applic...