Freigeben über


VCToolFile.AddCustomBuildRule-Methode

Fügt der Tooldatei eine benutzerdefinierte Buildregel hinzu.

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
Object AddCustomBuildRule(
    string Name,
    string CommandLine,
    string Outputs,
    string FileExtensions
)
Object^ AddCustomBuildRule(
    [InAttribute] String^ Name, 
    [InAttribute] String^ CommandLine, 
    [InAttribute] String^ Outputs, 
    [InAttribute] String^ FileExtensions
)
abstract AddCustomBuildRule : 
        Name:string * 
        CommandLine:string * 
        Outputs:string * 
        FileExtensions:string -> Object
function AddCustomBuildRule(
    Name : String, 
    CommandLine : String, 
    Outputs : String, 
    FileExtensions : String
) : Object

Parameter

  • Name
    Typ: String

    Der Name der Buildregel.

  • CommandLine
    Typ: String

    Befehlszeilentext.

  • Outputs
    Typ: String

    Buildtoolausgaben

  • FileExtensions
    Typ: String

    Eine Liste von Dateierweiterungen für diese Buildregel.

Rückgabewert

Typ: Object
Ein Buildregelobjekt.

.NET Framework-Sicherheit

Siehe auch

Referenz

VCToolFile Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace