15 writes to ArgumentList
Aspire.Hosting (5)
Publishing\ContainerRuntimeBase.cs (1)
627ArgumentList = argumentList,
Publishing\ResourceContainerImageManager.cs (2)
618ArgumentList = arguments, 808ArgumentList = arguments,
ResourceBuilderExtensions.cs (1)
3819ArgumentList = arguments,
Utils\DotnetSdkVersionProvider.cs (1)
264ArgumentList = ["--version"],
Aspire.Hosting.Blazor (1)
BlazorDotNetCliRunner.cs (1)
57ArgumentList = argumentList,
Aspire.Hosting.Dotnet.Tests (4)
DotnetProjectBuildCoordinatorTests.cs (3)
777ArgumentList = 831ArgumentList = 3710ArgumentList =
DotnetProjectResourceTests.cs (1)
1129ArgumentList = arguments,
Aspire.Hosting.Tests (4)
Dcp\ProcessUtilTests.cs (2)
154ArgumentList = DotnetFileAppProcess.CreateArguments(appPath), 181ArgumentList = ["--info"],
Publishing\ResourceContainerImageManagerTests.cs (2)
1223ArgumentList = 1287ArgumentList =
Aspire.Hosting.TestUtilities (1)
Utils\DotnetFileAppProcess.cs (1)
71ArgumentList = CreateArguments(appPath, arguments),
37 references to ArgumentList
Aspire.Hosting (6)
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 (1)
587_logger.LogDebug("Running {RuntimeName} with arguments: {ArgumentList}", Name, spec.ArgumentList ?? (object?)spec.Arguments);
Aspire.Hosting.Tests (31)
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)
947publish => Assert.Equal("publish", publish.ArgumentList![0]), 950workingDirectory.ArgumentList!));
Publishing\ContainerRuntimeBaseTests.cs (1)
420ArgumentLists.Add(processSpec.ArgumentList);
Publishing\DotnetProgramArchiveTests.cs (4)
159if (spec.ArgumentList![0] == "publish") 409if (spec.ArgumentList![0] == "publish") 425var repository = Assert.Single(spec.ArgumentList!, static argument => argument.StartsWith("--property:ContainerRepository=", StringComparison.Ordinal)); 426var tag = Assert.Single(spec.ArgumentList!, static argument => argument.StartsWith("--property:ContainerImageTag=", StringComparison.Ordinal));
Publishing\ResourceContainerImageManagerTests.cs (11)
866Assert.Equal(Path.GetDirectoryName(processSpec.ArgumentList![1]), processSpec.WorkingDirectory); 869processSpec.ArgumentList, 949publish.ArgumentList!, 953workingDirectory.ArgumentList!)); 955processRunner.ProcessSpecs[0].ArgumentList!, 1139publish.ArgumentList), 1149query.ArgumentList); 1197publish.ArgumentList), 1204query.ArgumentList)); 1219var propertyArguments = command.ArgumentList! 1272var propertyArguments = publish.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);