Retrieving Visual Studio Last Version
Posted by admin - Apr 1, 2008 Articles, Dani Vainstein, MS-Visual Studio, QTips 0 0 Views : 169 Receive Updates For This Category
Article Tools
- Print this page
- Add Comment
- Send to Friend
- Last Updated on :
Jul 16, 2011
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


