I was wondering if it is possible to execute 'Run Custom Tool' on a file in the VS Solution? I have the ProjectItem object already.
info: C#, Visual Studio 2010 SDK
You'll need to ensure that the ProjectItem is selected, and then run:
DTE.ExecuteCommand("Project.RunCustomTool")
                        Try to case the Object property value of a ProjectItem to a VSProjectItem. If not null, simply call RunCustomTool() on it.
// assumes you already have a ProjectItem projectItem that is **NOT** null
VSProjectItem vsProjectItem = projectItem.Object as VSProjectItem;
if (vsProjectItem != null)
{
    vsProjectItem.RunCustomTool();
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With