Retrieving Visual Studio Last Version

Article Tools

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

based on http://support.microsoft.com/kb/555391

Previous postDescriptive Programming in 60 slides – Now available in Russian Next postDetermine which Version of Access was Used to Create a Database

Related Posts

Post Your Comment

You must be logged in to post a comment.