27 writes to Args
Aspire.Hosting (3)
DistributedApplication.cs (2)
160var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args }); 226Args = options.Args ?? [],
DistributedApplicationBuilder.cs (1)
119public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (7)
ContainerResourceTests.cs (1)
299Args = ["--publisher", "manifest"]
WithDockerfileTests.cs (6)
258Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 306Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 353Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 399Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 843Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 887Args = ["--publisher", "manifest", "--output-path", manifestPath],
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
133var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
33options.Args = ["--publisher", "manifest", "--output-path", manifestPath]; 71options.Args = ["--publisher", "manifest", "--output-path", manifestPath];
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
215var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } } ); 251var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
188applicationOptions.Args = hostBuilderOptions.Args;
Aspire.Hosting.Tests (10)
Dashboard\DashboardResourceTests.cs (2)
472options.Args = ["--publisher", "manifest"]; 509options.Args = ["--environment", "Development"];
DistributedApplicationBuilderTests.cs (2)
196Args = [] 203Args = []
ManifestGenerationTests.cs (5)
96Args = GetManifestArgs(), 117{ Args = GetJsonManifestArgs(), DisableDashboard = true, AssemblyName = typeof(ManifestGenerationTests).Assembly.FullName }); 551Args = GetManifestArgs() 593Args = GetManifestArgs() 637Args = GetManifestArgs()
Utils\VolumeNameGeneratorTests.cs (1)
110Args = [] // Ensure run mode (default)
TestProject.AppHost (1)
TestProgram.cs (1)
49Args = args,
9 references to Args
Aspire.Hosting (8)
DistributedApplication.cs (1)
181/// <see cref="DistributedApplicationOptions.Args"/> property to ensure that the app host continues to function
DistributedApplicationBuilder.cs (7)
184innerBuilderOptions.Args = options.Args; 656_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 690_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 697if (options.Args is null || !options.Args.Any()) 707if (options.Args.Contains("--start-resource")) 713return options.Args?.Any(arg => arg == "--command") ?? false;
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
195existingConfig.AddCommandLine(applicationOptions.Args ?? []);