18 writes to Args
Aspire.Hosting (2)
DistributedApplication.cs (1)
149var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args });
DistributedApplicationBuilder.cs (1)
100public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (5)
ContainerResourceTests.cs (1)
289Args = ["--publisher", "manifest"]
WithDockerfileTests.cs (4)
237Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 285Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 332Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 378Args = ["--publisher", "manifest", "--output-path", manifestOutputPath],
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
127var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
29options.Args = ["--publisher", "manifest", "--output-path", manifestPath]; 61options.Args = ["--publisher", "manifest", "--output-path", manifestPath];
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
203var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } } ); 239var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
188applicationOptions.Args = hostBuilderOptions.Args;
Aspire.Hosting.Tests (4)
Dashboard\DashboardResourceTests.cs (2)
393options.Args = ["--publisher", "manifest"]; 430options.Args = ["--environment", "Development"];
ManifestGenerationTests.cs (2)
92Args = GetManifestArgs(), 113{ Args = GetManifestArgs(), DisableDashboard = true, AssemblyName = typeof(ManifestGenerationTests).Assembly.FullName });
TestProject.AppHost (1)
TestProgram.cs (1)
47Args = args,
9 references to Args
Aspire.Hosting (8)
DistributedApplication.cs (1)
170/// <see cref="DistributedApplicationOptions.Args"/> property to ensure that the app host continues to function
DistributedApplicationBuilder.cs (7)
165innerBuilderOptions.Args = options.Args; 486_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 499_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 506if (options.Args is null || !options.Args.Any()) 516if (options.Args.Contains("--start-resource")) 522return options.Args?.Any(arg => arg == "--command") ?? false;
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
195existingConfig.AddCommandLine(applicationOptions.Args ?? []);