18 writes to ArgumentList
Aspire.Hosting (5)
Publishing\ContainerRuntimeBase.cs (1)
676ArgumentList = argumentList,
Publishing\ResourceContainerImageManager.cs (2)
664ArgumentList = arguments, 855ArgumentList = arguments,
ResourceBuilderExtensions.cs (1)
3837ArgumentList = arguments,
Utils\DotnetSdkVersionProvider.cs (1)
264ArgumentList = ["--version"],
Aspire.Hosting.Blazor (1)
BlazorDotNetCliRunner.cs (1)
57ArgumentList = argumentList,
Aspire.Hosting.Dotnet.Tests (4)
DotnetProjectBuildCoordinatorTests.cs (3)
1135ArgumentList = 1189ArgumentList = 4800ArgumentList =
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)
1355ArgumentList = 1429ArgumentList =
Aspire.Hosting.TestUtilities (1)
Utils\DotnetFileAppProcess.cs (1)
71ArgumentList = CreateArguments(appPath, arguments),
57 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); 171Assert.Equal(expectedArguments, spec.ArgumentList);
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
67Assert.Equal(["env", "-json", "GOFLAGS"], probe.ArgumentList);
Aspire.Hosting.Tests (47)
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 (6)
59processSpecs[2].ArgumentList); 217build.ArgumentList), 263build.ArgumentList)); 293build.ArgumentList)); 382build.ArgumentList), 472build.ArgumentList));
Publishing\DotnetProgramArchiveTests.cs (5)
163if (spec.ArgumentList![0] == "publish") 392publish.ArgumentList!, 583if (spec.ArgumentList![0] == "publish") 599var repository = Assert.Single(spec.ArgumentList!, static argument => argument.StartsWith("--property:ContainerRepository=", StringComparison.Ordinal)); 600var 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)
962Assert.Equal(Path.GetDirectoryName(processSpec.ArgumentList![1]), processSpec.WorkingDirectory); 965processSpec.ArgumentList, 1046publish.ArgumentList!, 1050workingDirectory.ArgumentList!)); 1052processRunner.ProcessSpecs[0].ArgumentList!, 1236publish.ArgumentList), 1246query.ArgumentList); 1302publish.ArgumentList), 1309query.ArgumentList)); 1351var propertyArguments = command.ArgumentList! 1414var 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);