Managing Visual Studio from the Command Window

Visual Studio .NET has an extensive Automation Model that you can access through the Command window, macros, or by writing add-ins. There is a lot of information in the VS .NET Automation Model that you can access through the Command window, including the macros you write. (We will talk more about the Automation Model in the second part of the chapter, beginning after this section.)

To run a macro you will need to open the Command window and access your macros via the Macros collection. For example, to run the macro created in the previous section, open the Command window in the VS .NET IDE and in command mode, type the complete path to the macro, Macros.MakeDirectory.Directory.MakeChapterDirectory ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.