If you created the add-in using the add-in wizard, you must have the Exec () method, as shown below. I added two lines that open the output window and become visible regardless of whether they were initially closed or minimized. I tested this on VS2008 and VS2010.
public void Exec(string commandName, vsCommandExecOption executeOption, ref object varIn, ref object varOut, ref bool handled)
{
handled = false;
if(executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault)
{
if(commandName == "AddinTest.Connect.AddinTest")
{
Window outputWindow = _applicationObject.Windows.Item(Constants.vsWindowKindOutput);
outputWindow.Visible = true;
handled = true;
return;
}
}
}
source
share