![]() |
||||
|
When you load the Visual Studio .NET 2002 IDE from the command-line using devenv.exe, for example to build a solution, addins do not receive the value ext_ConnectMode.ext_cm_CommandLine in the connectMode parameter of the OnConnection method. Cause This is a bug of Visual Studio .NET 2002. It was fixed in Visual Studio .NET 2003. More Information Steps to reproduce the problem:
Public Sub OnConnection(ByVal application As Object, _
ByVal connectMode As Extensibility.ext_ConnectMode, _
ByVal addInInst As Object, ByRef custom As System.Array) _
Implements Extensibility.IDTExtensibility2.OnConnection
If connectMode = ext_ConnectMode.ext_cm_CommandLine Then
MessageBox.Show("Launched from command line")
Else
MessageBox.Show("NOT Launched from command line")
End If
End Sub
Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this
You can code, design, locate code and document your apps much faster using VB.NET, C#, C++ or Visual J#:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||