26 writes to Args
Aspire.Hosting (2)
DistributedApplication.cs (1)
149var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args });
DistributedApplicationBuilder.cs (1)
110public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (7)
ContainerResourceTests.cs (1)
299Args = ["--publisher", "manifest"]
WithDockerfileTests.cs (6)
262Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 310Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 357Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 403Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 844Args = ["--publisher", "manifest", "--output-path", manifestOutputPath], 888Args = ["--publisher", "manifest", "--output-path", manifestPath],
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)
33options.Args = ["--publisher", "manifest", "--output-path", manifestPath]; 71options.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 (10)
Dashboard\DashboardResourceTests.cs (2)
462options.Args = ["--publisher", "manifest"]; 499options.Args = ["--environment", "Development"];
DistributedApplicationBuilderTests.cs (2)
195Args = [] 202Args = []
ManifestGenerationTests.cs (5)
96Args = GetManifestArgs(), 117{ Args = GetJsonManifestArgs(), DisableDashboard = true, AssemblyName = typeof(ManifestGenerationTests).Assembly.FullName }); 561Args = GetManifestArgs() 603Args = GetManifestArgs() 647Args = 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)
170/// <see cref="DistributedApplicationOptions.Args"/> property to ensure that the app host continues to function
DistributedApplicationBuilder.cs (7)
175innerBuilderOptions.Args = options.Args; 615_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 649_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 656if (options.Args is null || !options.Args.Any()) 666if (options.Args.Contains("--start-resource")) 672return options.Args?.Any(arg => arg == "--command") ?? false;
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
195existingConfig.AddCommandLine(applicationOptions.Args ?? []);