DTE2.ActiveSolutionProjects Property
Visual Studio 2015
Gets an array of currently selected projects.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Implements
_DTE.ActiveSolutionProjectsSub ActiveSolutionProjectsExample() Dim projs As System.Array Dim proj As Project projs = DTE2.ActiveSolutionProjects() If projs.Length > 0 Then proj = CType(projs.GetValue(0), EnvDTE.Project) MsgBox(proj.UniqueName) Else MsgBox(projs.Length) End If End Sub
Show: