18 writes to ArgumentList
Aspire.Hosting (5)
Publishing\ContainerRuntimeBase.cs (1)
676ArgumentList = argumentList,
Publishing\ResourceContainerImageManager.cs (2)
646ArgumentList = arguments, 836ArgumentList = arguments,
ResourceBuilderExtensions.cs (1)
3839ArgumentList = arguments,
Utils\DotnetSdkVersionProvider.cs (1)
264ArgumentList = ["--version"],
Aspire.Hosting.Blazor (1)
BlazorDotNetCliRunner.cs (1)
57ArgumentList = argumentList,
Aspire.Hosting.Dotnet.Tests (4)
DotnetProjectBuildCoordinatorTests.cs (3)
953ArgumentList = 1007ArgumentList = 4618ArgumentList =
DotnetProjectResourceTests.cs (1)
1206ArgumentList = arguments,
Aspire.Hosting.Go (1)
GoRunDebugging.cs (1)
126ArgumentList = ["env", "-json", "GOFLAGS"],
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
471ArgumentList = arguments,
Aspire.Hosting.Tests (5)
Dcp\ProcessUtilTests.cs (3)
159ArgumentList = DotnetFileAppProcess.CreateArguments(appPath), 186ArgumentList = ["--info"], 230ArgumentList = DotnetFileAppProcess.CreateArguments(app),
Publishing\ResourceContainerImageManagerTests.cs (2)
1241ArgumentList = 1305ArgumentList =
Aspire.Hosting.TestUtilities (1)
Utils\DotnetFileAppProcess.cs (1)
71ArgumentList = CreateArguments(appPath, arguments),
55 references to ArgumentList
Aspire.Hosting (7)
Dcp\Process\ProcessUtil.cs (5)
24if (processSpec.Arguments is not null && processSpec.ArgumentList is not null) 26throw new ArgumentException($"Specify either {nameof(ProcessSpec.Arguments)} or {nameof(ProcessSpec.ArgumentList)}, not both.", nameof(processSpec)); 57if (processSpec.ArgumentList is not null) 59foreach (var argument in processSpec.ArgumentList) 186return processSpec.Arguments ?? string.Join(" ", processSpec.ArgumentList?.Select(FormatProcessArgumentForDisplay) ?? []);
Publishing\ContainerRuntimeBase.cs (2)
576_logger.LogDebug("Running {RuntimeName} with arguments: {ArgumentList}", Name, spec.ArgumentList ?? (object?)spec.Arguments); 636_logger.LogDebug("Running {RuntimeName} with arguments: {ArgumentList}", Name, spec.ArgumentList ?? (object?)spec.Arguments);
Aspire.Hosting.Dotnet.Tests (2)
WslcDotnetPublishingTests.cs (2)
114Assert.Equal(expectedArguments, spec.ArgumentList); 169Assert.Equal(expectedArguments, spec.ArgumentList);
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
67Assert.Equal(["env", "-json", "GOFLAGS"], probe.ArgumentList);
Aspire.Hosting.Tests (45)
DotnetProgramPublishingTests.cs (2)
354Assert.Equal("publish", Assert.Single(processRunner.ProcessSpecs).ArgumentList![0]); 398Assert.All(processRunner.ProcessSpecs, spec => Assert.Equal("publish", spec.ArgumentList![0]));
ProjectResourceTests.cs (2)
975publish => Assert.Equal("publish", publish.ArgumentList![0]), 978workingDirectory.ArgumentList!));
Publishing\ContainerRuntimeBaseTests.cs (3)
34Assert.Equal(rootPath, runner.ProcessSpecs[^1].ArgumentList![^1]); 91Assert.Equal(expected, spec.ArgumentList); 536ArgumentLists.Add(processSpec.ArgumentList);
Publishing\DockerContainerRuntimeTests.cs (5)
59processSpecs[2].ArgumentList); 217build.ArgumentList), 263build.ArgumentList)); 293build.ArgumentList)); 430build.ArgumentList));
Publishing\DotnetProgramArchiveTests.cs (4)
159if (spec.ArgumentList![0] == "publish") 411if (spec.ArgumentList![0] == "publish") 427var repository = Assert.Single(spec.ArgumentList!, static argument => argument.StartsWith("--property:ContainerRepository=", StringComparison.Ordinal)); 428var tag = Assert.Single(spec.ArgumentList!, static argument => argument.StartsWith("--property:ContainerImageTag=", StringComparison.Ordinal));
Publishing\PodmanSaveArgumentsTests.cs (3)
190Assert.Equal("build", buildSpec.ArgumentList![0]); 212buildSpec => Assert.Equal("build", buildSpec.ArgumentList![0]), 258buildSpec => Assert.Equal("build", buildSpec.ArgumentList![0]),
Publishing\ResourceContainerImageManagerTests.cs (11)
884Assert.Equal(Path.GetDirectoryName(processSpec.ArgumentList![1]), processSpec.WorkingDirectory); 887processSpec.ArgumentList, 967publish.ArgumentList!, 971workingDirectory.ArgumentList!)); 973processRunner.ProcessSpecs[0].ArgumentList!, 1157publish.ArgumentList), 1167query.ArgumentList); 1215publish.ArgumentList), 1222query.ArgumentList)); 1237var propertyArguments = command.ArgumentList! 1290var propertyArguments = publish.ArgumentList!
Publishing\WslcContainerRuntimeTests.cs (4)
61spec.ArgumentList); 97Assert.Equal(expected, spec.ArgumentList); 203Assert.Equal("build", runner.ProcessSpecs[1].ArgumentList![0]); 277Assert.Equal(["image", "inspect", imageName, "--format", "json"], Assert.Single(runner.ProcessSpecs).ArgumentList);
Utils\DotnetSdkVersionProviderTests.cs (1)
82Assert.Equal(["--version"], processSpec.ArgumentList);
WithProcessCommandTests.cs (10)
133Assert.Equal(["--export"], processSpec.ArgumentList); 199Assert.Equal(["--message", "hello-from-options-callback"], processSpec.ArgumentList); 281Assert.Equal(["--message", "hello-from-factory"], processSpec.ArgumentList); 396Assert.Equal(["hello-from-argument"], processSpec.ArgumentList); 457Assert.Equal(["--message", "hello-from-backchannel"], processSpec.ArgumentList); 494Assert.Equal(["from-async-factory"], processSpec.ArgumentList); 537Assert.Equal(["arg-1"], processSpec.ArgumentList); 542Assert.Equal(["arg-2"], processSpec.ArgumentList); 902Assert.Equal(expectedArguments, processSpec.ArgumentList); 1096Assert.Equal(["--from-export"], processSpec.ArgumentList);