DteComponent

Working with an EnvDTE (Assembly-wrapped COM library containing the objects and members for Visual Studio core automation. http://msdn.microsoft.com/en-us/library/EnvDTE.aspx)

exec

Execute the available command.

Syntax:

#[DTE exec: command(arg)]

Sample:

#[DTE exec: Build.SolutionPlatforms(x86)] 
#[DTE exec: Build.SolutionConfigurations(Debug_Exclude_Plugins_All)]
#[DTE exec: Build.Cancel]

Note: Some commands should be available only for specific context of your environment. For example the Build.Cancel, etc.

The raise(guid, id, customIn, customOut) method is available in vsCommandEvent plugin.

events

Operations with events.

LastCommand

available with v0.12+

The last received command.

Note: Use our Sniffer to find any commands.

Guid

Scope of Command ID

Syntax:

string #[DTE events.LastCommand.Guid]

Id

Command ID

Syntax:

integer #[DTE events.LastCommand.Id]

CustomIn

Custom input parameters.

Syntax:

object #[DTE events.LastCommand.CustomIn]

CustomOut

Custom output parameters.

Syntax:

object #[DTE events.LastCommand.CustomOut]

Pre

Flag of execution of the command - Before / After

Syntax:

boolean #[DTE events.LastCommand.Pre]