Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions docs/03-common/08-cli-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,20 @@ This example will always have 5 packages being pushed simultaneously. Possible e

### Custom Arguments

It may happen that certain arguments are not available from the fluent interface. In this case, the `SetProcessArgumentConfigurator` method can be used to add them manually:
It may happen that certain arguments are not available from the fluent interface. In this case, the `SetProcessAdditionalArguments` or `AddProcessAdditionalArguments` methods can be used to add them manually:

```csharp
MSBuildTasks.MSBuild(_ => _
.SetTargetPath(SolutionFile)
.SetProcessArgumentConfigurator(_ => _
.Add("/r")));
.SetProcessAdditionalArguments( "/r" ));
```

If secrets are involved, add them with the `AddProcessRedactedSecrets` first:

```csharp
SonarScannerTasks.SonarScannerBegin(_ => _
.AddProcessRedactedSecrets( Secrets.SonarQubeAccessToken )
.AddProcessAdditionalArguments( $"/d:sonar.login={Secrets.SonarQubeAccessToken}" ));
```

<!--
Expand All @@ -202,7 +209,9 @@ MSBuildTasks.MSBuild(_ => _
SetEnvironmentVariables
LogOutput
When
SetArgumentConfigurator
SetProcessAdditionalArguments
AddProcessAdditionalArguments
AddProcessRedactedSecrets
-->

### Exit Code Handling
Expand Down