10 references to AddExecutable
Aspire.Hosting.Native.Core.Tests (5)
NativeBuilderAuthoringTests.cs (4)
168IResourceBuilder<ExecutableResource> consumer = builder.AddExecutable("consumer", "unused-executable", ".") 206var consumer = second.AddExecutable("consumer", "unused-executable", "."); 221var consumer = builder.AddExecutable("consumer", Environment.ProcessPath!, AppContext.BaseDirectory).WithReference(cache); 222var waiter = builder.AddExecutable("waiter", Environment.ProcessPath!, AppContext.BaseDirectory).WaitFor(cache);
TestServices\ComposeTestApplication.cs (1)
31builder.AddExecutable("web", Path.Combine(root, "deployment-only", "node"), Path.Combine(root, "web"))
NativeIntegrations.DockerCompose.AppHost.Sample (1)
Program.cs (1)
28var web = builder.AddExecutable("web", Environment.ProcessPath!, Path.Combine(builder.AppHostDirectory, "web"))
NativeIntegrations.Redis.AppHost.Sample (1)
Program.cs (1)
10builder.AddExecutable("consumer", builder.Configuration["consumer-path"] ?? throw new ArgumentException("--consumer-path is required."), AppContext.BaseDirectory)
NativeIntegrations.Redis.Validation (3)
Program.cs (1)
12var consumer = builder.AddExecutable("consumer", builder.Configuration["consumer-path"] ?? throw new ArgumentException("--consumer-path is required."), AppContext.BaseDirectory)
RedisPersistenceValidation.cs (2)
18rejected.Builder.AddExecutable("invalid", "not-an-absolute-executable", "."); 40var consumer = builder.AddExecutable("consumer", builder.Configuration["consumer-path"] ?? throw new ArgumentException("--consumer-path is required."), AppContext.BaseDirectory)