VCToolFile.AddCustomBuildRule Method

Adds a custom build rule to the tool file.

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

Syntax

'Declaration
Function AddCustomBuildRule ( _
    Name As String, _
    CommandLine As String, _
    Outputs As String, _
    FileExtensions As String _
) As Object
'Usage
Dim instance As VCToolFile 
Dim Name As String 
Dim CommandLine As String 
Dim Outputs As String 
Dim FileExtensions As String 
Dim returnValue As Object 

returnValue = instance.AddCustomBuildRule(Name, _
    CommandLine, Outputs, FileExtensions)
Object AddCustomBuildRule(
    string Name,
    string CommandLine,
    string Outputs,
    string FileExtensions
)
Object^ AddCustomBuildRule(
    [InAttribute] String^ Name, 
    [InAttribute] String^ CommandLine, 
    [InAttribute] String^ Outputs, 
    [InAttribute] String^ FileExtensions
)
function AddCustomBuildRule(
    Name : String, 
    CommandLine : String, 
    Outputs : String, 
    FileExtensions : String
) : Object

Parameters

  • FileExtensions
    Type: System.String

    List of file extensions that apply to this build rule.

Return Value

Type: System.Object
A Build Rule object.

.NET Framework Security

See Also

Reference

VCToolFile Interface

VCToolFile Members

Microsoft.VisualStudio.VCProjectEngine Namespace