9 references to EscapeSingleArg
dotnet (8)
Commands\Run\CSharpCompilerCommand.cs (1)
316
return ArgumentEscaper.
EscapeSingleArg
(arg, additionalShouldSurroundWithQuotes: static (string arg) =>
Commands\Run\RunCommandSelector.cs (2)
472
Reporter.Output.WriteLine($"{CliCommandStrings.RunCommandExampleText}: dotnet run --device {ArgumentEscaper.
EscapeSingleArg
(devices[0].Id)}");
518
Reporter.Error.WriteLine($"{CliCommandStrings.RunCommandExampleText}: dotnet run --device {ArgumentEscaper.
EscapeSingleArg
(devices[0].Id)}");
Commands\Test\MTP\TestApplication.cs (5)
194
builder.Append($" {TestCommandDefinition.MicrosoftTestingPlatform.ResultsDirectoryOptionName} {ArgumentEscaper.
EscapeSingleArg
(resultsDirectoryPath)}");
199
builder.Append($" {TestCommandDefinition.MicrosoftTestingPlatform.ConfigFileOptionName} {ArgumentEscaper.
EscapeSingleArg
(configFilePath)}");
204
builder.Append($" {TestCommandDefinition.MicrosoftTestingPlatform.DiagnosticOutputDirectoryOptionName} {ArgumentEscaper.
EscapeSingleArg
(diagnosticOutputDirectoryPath)}");
209
builder.Append($" {ArgumentEscaper.
EscapeSingleArg
(arg)}");
212
builder.Append($" {CliConstants.ServerOptionKey} {CliConstants.ServerOptionValue} {CliConstants.DotNetTestPipeOptionKey} {ArgumentEscaper.
EscapeSingleArg
(_pipeName)}");
Microsoft.DotNet.Cli.Utils (1)
ArgumentEscaper.cs (1)
61
escapedArgs.Add(
EscapeSingleArg
(arg));