The example given by MS in the MDSN doesn't tell you how to declare the DTE object or import it's namespace, etc, so the code segment below doesn't work. I'm just trying to add a reference path at runtime and it recommends using the DTE. Has anyone been able to instantiate such an object?
Thx
ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vxlrfvslangprojprojectpropertiesreferencepath.htm
Sub AddReferencePath(ByVal pathToAdd As String)
Dim currentPath As String
Dim newPath As String
currentPath = _
DTE.Solution.Projects.Item(1).Properties.Item("ReferencePath".Value
newPath = currentPath & ";" & pathToAdd
DTE.Solution.Projects.Item(1).Properties.Item("ReferencePath".Value _
= newPath
End Sub
Thx
ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vxlrfvslangprojprojectpropertiesreferencepath.htm
Sub AddReferencePath(ByVal pathToAdd As String)
Dim currentPath As String
Dim newPath As String
currentPath = _
DTE.Solution.Projects.Item(1).Properties.Item("ReferencePath".Value
newPath = currentPath & ";" & pathToAdd
DTE.Solution.Projects.Item(1).Properties.Item("ReferencePath".Value _
= newPath
End Sub