28 writes to Args
Aspire.Hosting (3)
DistributedApplication.cs (2)
160var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args }); 226Args = options.Args ?? [],
DistributedApplicationBuilder.cs (1)
121public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (7)
ContainerResourceTests.cs (1)
293Args = ["--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)
131var 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)
246var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } } ); 282var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
188applicationOptions.Args = hostBuilderOptions.Args;
Aspire.Hosting.Tests (11)
Dashboard\DashboardResourceTests.cs (2)
506options.Args = ["--publisher", "manifest"]; 543options.Args = ["--environment", "Development"];
DistributedApplicationBuilderTests.cs (3)
133Args = [$"{KnownConfigNames.AspireUserSecretsId}={userSecretsId}"], 306Args = [] 313Args = []
ManifestGenerationTests.cs (5)
97Args = GetManifestArgs(), 118{ Args = GetJsonManifestArgs(), DisableDashboard = true, AssemblyName = typeof(ManifestGenerationTests).Assembly.FullName }); 556Args = GetManifestArgs() 598Args = GetManifestArgs() 642Args = GetManifestArgs()
Utils\VolumeNameGeneratorTests.cs (1)
111Args = [] // Ensure run mode (default)
TestProject.AppHost (1)
TestProgram.cs (1)
51Args = 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)
186innerBuilderOptions.Args = options.Args; 668_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 702_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 709if (options.Args is null || !options.Args.Any()) 719if (options.Args.Contains("--start-resource")) 725return options.Args?.Any(arg => arg == "--command") ?? false;
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
195existingConfig.AddCommandLine(applicationOptions.Args ?? []);