50 writes to Args
Aspire.Hosting (3)
DistributedApplication.cs (2)
173var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args }); 241Args = options.Args ?? [],
DistributedApplicationBuilder.cs (1)
129public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (7)
ContainerResourceTests.cs (1)
293Args = ["--publisher", "manifest"]
WithDockerfileTests.cs (6)
266Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 316Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 365Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 413Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 871Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 916Args = ["--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)
337var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } } ); 373var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Testing (2)
DistributedApplicationFactory.cs (1)
187applicationOptions.Args = hostBuilderOptions.Args;
DistributedApplicationTestingBuilder.cs (1)
341applicationOptions.Args = hostBuilderOptions.Args;
Aspire.Hosting.Tests (32)
AspireEnvironmentTests.cs (1)
82Args = ["--environment", "Production"]
Dashboard\DashboardResourceTests.cs (2)
654options.Args = ["--publisher", "manifest"]; 691options.Args = ["--environment", "Development"];
DistributedApplicationBuilderTests.cs (23)
266Args = [$"{KnownConfigNames.AspireLogLevel}=Trace"], 312Args = [$"{KnownConfigNames.AspireUserSecretsId}={userSecretsId}"], 348Args = [$"{KnownConfigNames.AspireUserSecretsId}={userSecretsId}"], 529Args = [$"SECRETS_FILE={unrelatedFile}"], 557Args = [$"{KnownConfigNames.AspireSecretsFile}={secretsFile}"], 593Args = [$"{KnownConfigNames.AspireUserSecretsId}={userSecretsId}", "--environment", environment], 621Args = [$"{KnownConfigNames.AspireUserSecretsId}={userSecretsId}", "--environment", environment], 640Args = [$"{KnownConfigNames.AspireSecretsFile}={path}", "--environment", "QA.EU"], 709Args = [$"{KnownConfigNames.AspireSecretsFile}={aspirePath}", "--environment", "Development"], 749Args = 892Args = [] 899Args = [] 925Args = [] 933Args = [] 973Args = [] 980Args = [] 1027Args = [] 1069Args = ["--publisher", "manifest"] 1117Args = ["--publisher", "manifest", "--environment", "Invalid.Env"] 1142Args = ["--publisher", "manifest"] 1201Args = ["--publisher", "manifest"] 1265Args = ["--publisher", "manifest"] 1327Args = ["--publisher", "manifest"]
ManifestGenerationTests.cs (5)
95Args = GetManifestArgs(), 116{ Args = GetJsonManifestArgs(), DisableDashboard = true, AssemblyName = typeof(ManifestGenerationTests).Assembly.FullName }); 554Args = GetManifestArgs() 596Args = GetManifestArgs() 640Args = GetManifestArgs()
Utils\VolumeNameGeneratorTests.cs (1)
111Args = [] // Ensure run mode (default)
TestProject.AppHost (1)
TestProgram.cs (1)
51Args = args,
6 references to Args
Aspire.Hosting (3)
DistributedApplication.cs (1)
194/// <see cref="DistributedApplicationOptions.Args"/> property to ensure that the app host continues to function
DistributedApplicationBuilder.cs (2)
202innerBuilderOptions.Args = options.Args; 860_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings);
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (1)
194existingConfig.AddCommandLine(applicationOptions.Args ?? []);
DistributedApplicationTestingBuilder.cs (2)
330string[] existingArgs = ReferenceEquals(hostBuilderOptions.Args, applicationOptions.Args) 332: [.. hostBuilderOptions.Args ?? [], .. applicationOptions.Args ?? []];