VSTA DTEProvider has the ability to launch Visual Studio

In VSTA 2.0, you can use DTEProvider to launch Visual Studio instead of VSTA, which can be helpful for debugging or provide additional functionalities for users who already have Visual Studio installed. For example, in ShapeAppCSharpMacroRecording sample, in EnsureIDE function of VstaDesignTimeIntegration.cs you can change the code of

IDTEProvider dteProvider = 
VSTADTEProviderClass(); this.dte = (EnvDTE.DTE)dteProvider.GetDTE
"ShapeAppCSharp", 0);


IDTEProvider2 dteProvider2 = 
VSTADTEProviderClass(); this.dte = (EnvDTE.DTE)dteProvider2.GetVSDTE
"ShapeAppCSharp", 0);

Now Run ShapeApp, launch IDE and Visual Studio will be launched.

Comments (2)

  1. sebastien m says:

    Anything new about vsta and its possible integration in the future with ms office (excel, word…) ?

    No mention anywhere. All questions to MS hit walls.

    what is going on?

Skip to main content