ToolPath Property
Visual Studio .NET 2003
Returns the path to the specified tool.
[Visual Basic .NET]
Public ReadOnly Property ToolPath() As String
[Visual Basic 6]
Property Get ToolPath() As String
[C++]
HRESULT __stdcall get_ToolPath( /* [out, retval] */ BSTR* retVal );
[C#]
public string ToolPath {get;}
[JScript .NET]
public function get ToolPath() : String
Return Value
A string representing the path to the specified tool.
Example
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a
' Visual C++ .NET project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim cfgs, tools As IVCCollection
Dim cfg As VCConfiguration
Dim tool As VCALinkTool
Dim msg As String
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.Tools("VCAlinkTool")
msg += "Tool kind: " & tool.ToolKind & vbCr
msg += "Tool name: " & tool.ToolName & vbCr
msg += "Tool path: " & tool.ToolPath
MsgBox(msg)
End Sub
End Module
See Samples for Project Model Extensibility for information on how to compile and run this sample.
See Also
Applies To: VCALinkTool Object | VCAuxiliaryManagedWrapperGeneratorTool Object | VCBscMakeTool Object | VCCLCompilerTool Object | VCCustomBuildTool Object | VCLibrarianTool Object | VCLinkerTool Object | VCManagedResourceCompilerTool Object | VCManagedWrapperGeneratorTool Object | VCMidlTool Object | VCNMakeTool Object | VCPostBuildEventTool Object | VCPreBuildEventTool Object | VCPreLinkEventTool Object | VCResourceCompilerTool Object | VCWebDeploymentTool Object | VCWebServiceProxyGeneratorTool Object | VCXMLDataGeneratorTool Object