52 references to AddExecutable
Aspire.Hosting.Azure.Tests (9)
AzureAppServiceTests.cs (1)
332builder.AddExecutable("exe", "path/to/executable", ".")
AzureContainerAppsTests.cs (6)
129builder.AddExecutable("api", "node.exe", Environment.CurrentDirectory) 169builder.AddExecutable("api", "node.exe", Environment.CurrentDirectory) 466builder.AddExecutable("api", "node", ".") 1604builder.AddExecutable("exe", "path/to/executable", ".") 1609builder.AddExecutable("exe", "path/to/executable", ".") 1972builder.AddExecutable("build-only", "exe", ".")
AzureDeployerTests.cs (1)
143builder.AddExecutable("exe", "exe", ".")
PublicApiTests\AppContainersPublicApiTests.cs (1)
65var executable = builder.AddExecutable("api", "node.exe", Environment.CurrentDirectory);
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
328var container = builder.AddExecutable("service", "foo", ".")
DockerComposeTests.cs (1)
115builder.AddExecutable("exe", "path/to/executable", ".")
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesEnvironmentResourceTests.cs (1)
66builder.AddExecutable("exe", "path/to/executable", ".")
Aspire.Hosting.MongoDB.Tests (1)
ConnectionPropertiesTests.cs (1)
99var app = builder.AddExecutable("app", "command", ".")
Aspire.Hosting.MySql.Tests (1)
ConnectionPropertiesTests.cs (1)
88var app = builder.AddExecutable("app", "command", ".")
Aspire.Hosting.Nats.Tests (1)
ConnectionPropertiesTests.cs (1)
62var app = builder.AddExecutable("app", "command", ".")
Aspire.Hosting.Oracle.Tests (1)
ConnectionPropertiesTests.cs (1)
84var app = builder.AddExecutable("app", "command", ".")
Aspire.Hosting.RabbitMQ.Tests (1)
ConnectionPropertiesTests.cs (1)
62var app = builder.AddExecutable("app", "command", ".")
Aspire.Hosting.Tests (31)
Dcp\DcpExecutorTests.cs (10)
234var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 266var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 298var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 331var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 368builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 385builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 419builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 453builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 520var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo"); 1167var exe = builder.AddExecutable("node", "node.exe", ".");
DistributedApplicationModelExtensionsTests.cs (1)
23var notACompute = builder.AddExecutable("notACompute", "path/to/executable", ".");
ExecutableResourceBuilderExtensionTests.cs (7)
20var executable = builder.AddExecutable("myexe", "command", workingDirectory); 31var executable = builder.AddExecutable("myexe", "command", "workingdirectory"); 44var executable = builder.AddExecutable("myexe", "command", "/whatever/workingdirectory"); 57var executable = builder.AddExecutable("myexe", "command", "workingdirectory"); 66var executable = builder.AddExecutable("myexe", "command", "workingdirectory"); 79var executable = builder.AddExecutable("myexe", "command", "workingdirectory") 97var executable = builder.AddExecutable("myexe", "command", "workingdirectory")
ExecutableResourceTests.cs (1)
20var exe1 = appBuilder.AddExecutable("e1", "ruby", ".", "app.rb")
ManifestGenerationTests.cs (2)
144var resourceBuilder = program.AppBuilder.AddExecutable("program", "run program", "c:/", addExecutableArgs); 181program.AppBuilder.AddExecutable("program", "run program", "c:/");
ResourceExtensionsTests.cs (2)
319RunTest(builder.AddExecutable("myExecutable", "nginx", string.Empty)); 401var executableResource = builder.AddExecutable("test-exec", "dotnet", "myapp.dll")
Schema\SchemaTests.cs (2)
125builder.AddExecutable(name:"foo", command: "bar", workingDirectory: tempContextPath, "one", "two", "three").PublishAsDockerFile(); 143builder.AddExecutable("executable", "hellworld", "foo", "arg1", "arg2");
WaitForTests.cs (4)
26var dependingExecutableResource = builder.AddExecutable("dependingexecutableresource", "doesnotmatter", "alsodoesntmatter") 235var failToStart = builder.AddExecutable("failToStart", "does-not-exist", "."); 259var failToStart = builder.AddExecutable("failToStart", "does-not-exist", "."); 290var failToStart = builder.AddExecutable("failToStart", "does-not-exist", ".");
WithEndpointTests.cs (1)
204builder.AddExecutable("foo", "foo", ".")
WithReferenceTests.cs (1)
502var executable = builder.AddExecutable("myexe", "cmd", ".", args: [])
Stress.AppHost (3)
Program.cs (3)
139builder.AddExecutable("executableWithSingleArg", "dotnet", Environment.CurrentDirectory, "--version"); 140builder.AddExecutable("executableWithSingleEscapedArg", "dotnet", Environment.CurrentDirectory, "one two"); 141builder.AddExecutable("executableWithMultipleArgs", "dotnet", Environment.CurrentDirectory, "--version", "one two");
TestingAppHost1.AppHost (1)
Program.cs (1)
36builder.AddExecutable("app", "cmd", ".")