ToolSettings.

ArgumentCustomization Property

Summary

Gets or sets the argument customization. Argument customization is a way that lets you add, replace or reuse arguments passed to a tool. This allows you to support new tool arguments, customize arguments or address potential argument issues.
Namespace
Cake.Core.Tooling
Containing Type
ToolSettings

Syntax

public Func<ProcessArgumentBuilder, ProcessArgumentBuilder> ArgumentCustomization { get; set; }

Examples

Combining tool specific settings and tool arguments:

NuGetAddSource("Cake", "https://www.myget.org/F/cake/api/v3/index.json",
    new NuGetSourcesSettings { UserName = "user", Password = "incorrect",
    ArgumentCustomization = args=>args.Append("-StorePasswordInClearText")
});

Setting multiple tool arguments:

MSTest(pathPattern, new MSTestSettings()
    { ArgumentCustomization = args=>args.Append("/detail:errormessage")
                                           .Append("/resultsfile:TestResults.trx") });

Value

Type Description
Func<ProcessArgumentBuilder, ProcessArgumentBuilder> The delegate used to customize the ProcessArgumentBuilder.