35 references to AddExecutable
Aspire.Hosting.Azure.Tests (6)
AzureAppServiceTests.cs (1)
322builder.AddExecutable("exe", "path/to/executable", ".")
AzureContainerAppsTests.cs (4)
127builder.AddExecutable("api", "node.exe", Environment.CurrentDirectory) 167builder.AddExecutable("api", "node.exe", Environment.CurrentDirectory) 459builder.AddExecutable("api", "node", ".") 1538builder.AddExecutable("exe", "path/to/executable", ".")
PublicApiTests\AppContainersPublicApiTests.cs (1)
65var executable = builder.AddExecutable("api", "node.exe", Environment.CurrentDirectory);
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
334var container = builder.AddExecutable("service", "foo", ".")
DockerComposeTests.cs (1)
115builder.AddExecutable("exe", "path/to/executable", ".")
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesEnvironmentResourceTests.cs (1)
63builder.AddExecutable("exe", "path/to/executable", ".")
Aspire.Hosting.Tests (22)
Dcp\DcpExecutorTests.cs (10)
232var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 264var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 296var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 329var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 366builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 383builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 417builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 451builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo") 518var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo"); 1155var exe = builder.AddExecutable("node", "node.exe", ".");
DistributedApplicationModelExtensionsTests.cs (1)
23var notACompute = builder.AddExecutable("notACompute", "path/to/executable", ".");
ExecutableResourceTests.cs (1)
20var exe1 = appBuilder.AddExecutable("e1", "ruby", ".", "app.rb")
ManifestGenerationTests.cs (2)
139var resourceBuilder = program.AppBuilder.AddExecutable("program", "run program", "c:/", addExecutableArgs); 176program.AppBuilder.AddExecutable("program", "run program", "c:/");
ResourceExtensionsTests.cs (1)
318RunTest(builder.AddExecutable("myExecutable", "nginx", string.Empty));
Schema\SchemaTests.cs (2)
115builder.AddExecutable(name:"foo", command: "bar", workingDirectory: tempContextPath, "one", "two", "three").PublishAsDockerFile(); 133builder.AddExecutable("executable", "hellworld", "foo", "arg1", "arg2");
WaitForTests.cs (4)
24var dependingExecutableResource = builder.AddExecutable("dependingexecutableresource", "doesnotmatter", "alsodoesntmatter") 233var failToStart = builder.AddExecutable("failToStart", "does-not-exist", "."); 257var failToStart = builder.AddExecutable("failToStart", "does-not-exist", "."); 288var failToStart = builder.AddExecutable("failToStart", "does-not-exist", ".");
WithEndpointTests.cs (1)
204builder.AddExecutable("foo", "foo", ".")
Stress.AppHost (3)
Program.cs (3)
129builder.AddExecutable("executableWithSingleArg", "dotnet", Environment.CurrentDirectory, "--version"); 130builder.AddExecutable("executableWithSingleEscapedArg", "dotnet", Environment.CurrentDirectory, "one two"); 131builder.AddExecutable("executableWithMultipleArgs", "dotnet", Environment.CurrentDirectory, "--version", "one two");
TestingAppHost1.AppHost (1)
Program.cs (1)
36builder.AddExecutable("app", "cmd", ".")