Login   /   Register

Retrieving Visual Studio last version

Rate this article
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

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

Posted in Visual Studio

Leave a Reply

You must be logged in to post a comment.

This article was viewed 443 times