Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Tool Property (VCProjectEngine)

Visual Studio .NET 2003

Specifies the tool that will build the file.

[Visual Basic .NET]
Public Property Tool() As Object
[Visual Basic 6]
Property Get Tool() As Object
Property Let Tool( _
   ByVal NewValue As Object _
HRESULT __stdcall get_Tool(
   /* [out, retval] */ IDispatch** retVal
HRESULT __stdcall put_Tool(
   /* [in] */ IDispatch* NewValue
public object Tool {get; set;}
[JScript .NET]
public function get Tool() : Object
public function set Tool(
   NewValue : Object


The following sample code uses the Tool property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim file, file2 As VCFile
        Dim col As IVCCollection
        Dim fileconfig As VCFileConfiguration
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Files
        file = col.Item(1)
        col = file.FileConfigurations
        fileconfig = col.Item("Debug|Win32")
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCFileConfiguration Object | VCReferenceConfiguration Object

© 2015 Microsoft