28 references to ArgumentEscaper
dotnet (24)
CommandFactory\CommandResolution\AppBaseDllCommandResolver.cs (1)
25
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(
CommandFactory\CommandResolution\DepsJsonCommandResolver.cs (1)
192
var escapedArgString =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(muxerArgs);
CommandFactory\CommandResolution\GenericPlatformCommandSpecFactory.cs (1)
18
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(args);
CommandFactory\CommandResolution\MuxerCommandResolver.cs (1)
18
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(
CommandFactory\CommandResolution\MuxerCommandSpecMaker.cs (1)
55
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(commandArguments);
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
166
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(commandArguments);
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
382
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(args)));
CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
84
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(commandArguments);
CommandFactory\CommandResolution\RootedCommandResolver.cs (1)
22
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(
CommandFactory\CommandResolution\WindowsExePreferredCommandSpecFactory.cs (4)
43
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(args);
60
var cmdEscapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForCmdProcessStart(args);
62
if (!
ArgumentEscaper
.IsSurroundedWithQuotes(command) // Don't quote already quoted strings
63
&&
ArgumentEscaper
.ShouldSurroundWithQuotes(command))
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (1)
127
Arguments =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(
Commands\MSBuild\MSBuildForwardingApp.cs (2)
82
internal string GetArgumentsToMSBuild() =>
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(GetArgumentTokensToMSBuild());
109
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(arguments));
Commands\Run\CSharpCompilerCommand.cs (1)
361
return
ArgumentEscaper
.EscapeSingleArg(arg, additionalShouldSurroundWithQuotes: static (string arg) =>
Commands\Run\RunProperties.cs (1)
44
return this with { Arguments = Arguments + " " +
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(applicationArgs) };
Commands\Test\MTP\TestApplication.cs (5)
151
builder.Append($" {MicrosoftTestingPlatformOptions.ResultsDirectoryOption.Name} {
ArgumentEscaper
.EscapeSingleArg(resultsDirectoryPath)}");
156
builder.Append($" {MicrosoftTestingPlatformOptions.ConfigFileOption.Name} {
ArgumentEscaper
.EscapeSingleArg(configFilePath)}");
161
builder.Append($" {MicrosoftTestingPlatformOptions.DiagnosticOutputDirectoryOption.Name} {
ArgumentEscaper
.EscapeSingleArg(diagnosticOutputDirectoryPath)}");
166
builder.Append($" {
ArgumentEscaper
.EscapeSingleArg(arg)}");
169
builder.Append($" {CliConstants.ServerOptionKey} {CliConstants.ServerOptionValue} {CliConstants.DotNetTestPipeOptionKey} {
ArgumentEscaper
.EscapeSingleArg(_pipeName)}");
Commands\Tool\ToolCommandSpecCreator.cs (1)
27
var escapedArgs =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(
dotnet.Tests (1)
CommandTests\Run\RunFileTests.cs (1)
2221
var msbuildCallArgsString =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(msbuildCallArgs);
Microsoft.DotNet.Cli.Utils (1)
ForwardingAppImplementation.cs (1)
77
Arguments =
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(_allArgs),
Microsoft.DotNet.Cli.Utils.Tests (1)
ArgumentEscaperTests.cs (1)
20
Assert.Equal(expected,
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(args));
Microsoft.NET.TestFramework (1)
Commands\SdkCommandSpec.cs (1)
26
return
ArgumentEscaper
.EscapeAndConcatenateArgArrayForProcessStart(Arguments);