Describes how to automate the Visual Studio .NET IDE from outside the IDE.
The following VBScript sample shows how to create and instance of VS.NET 2005 and show its name and version:
Dim dte
' ** Creates an instance of the VS.NET 2003 IDE
Set dte = CreateObject( "VisualStudio.DTE.8.0" )
' ** While the instance is still invisible, show its name and version
Print dte.Name & " " & dte.Version
' ** Make it visible and keep it open after we finish this script
dte.MainWindow.Visible = True
dte.UserControl = True
Posted in Visual Studio

daniva



