Compartir a través de


ToolTask.GetResponseFileSwitch Method

Returns the command line switch used by the executable file to specifiy a response (.rsp) file.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

Syntax

'Declaration
Protected Overridable Function GetResponseFileSwitch ( _
    responseFilePath As String _
) As String
protected virtual string GetResponseFileSwitch(
    string responseFilePath
)
protected:
virtual String^ GetResponseFileSwitch(
    String^ responseFilePath
)
abstract GetResponseFileSwitch : 
        responseFilePath:string -> string  
override GetResponseFileSwitch : 
        responseFilePath:string -> string
protected function GetResponseFileSwitch(
    responseFilePath : String
) : String

Parameters

  • responseFilePath
    Type: System.String

    The full path to the temporary .rsp file.

Return Value

Type: System.String
The command line switch used by the executable file to specifiy a response (.rsp) file.

Remarks

This method is only called if GenerateResponseFileCommands returns a non-empty string value.

This method is called after ValidateParameters, SkipTaskExecution and GenerateResponseFileCommands.

.NET Framework Security

See Also

Reference

ToolTask Class

Microsoft.Build.Utilities Namespace