From a Visual Studio macro, how do I (programmatically) invoke one of the built-in commands (say, File.OpenFile)?
Thanks.
From a Visual Studio macro, how do I (programmatically) invoke one of the built-in commands (say, File.OpenFile)?
Thanks.
Found out by recording a macro and then editing it, instead of creating it from scratch. For the benefit of others, the way to do it is (for example):
DTE.ExecuteCommand("File.OpenFile")