Export (0) Print
Expand All

VCConfiguration.FileTools Property

Lists the available tools that operate on files.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

IVCCollection FileTools { get; }

See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.

The following example modifies the VCConfiguration object's FileTools property in the integrated development environment (IDE):

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

Public Module Module1
    Sub Test()
        Dim idx As Integer
        Dim cfgs, cfgs2 As IVCCollection
        Dim cfg As VCConfiguration

        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object

        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        cfgs2 = cfg.FileTools
        For idx = 1 To cfgs2.Count
            MsgBox(cfgs2.Item(idx).ToolName)
        Next

    End Sub
End Module

Community Additions

ADD
Show:
© 2014 Microsoft