172 references to AddDotnetProject
Aspire.Hosting.Azure.Tests (3)
AzureAppServiceTests.cs (1)
65var project = builder.AddDotnetProject("api", "api.csproj", options => options.ExcludeLaunchProfile = true)
AzureContainerAppsTests.cs (1)
130var project = builder.AddDotnetProject("api", "api.csproj", options => options.ExcludeLaunchProfile = true)
AzureSandboxesTests.cs (1)
2742var project = builder.AddDotnetProject("frontend", "frontend.csproj", options => options.ExcludeLaunchProfile = true)
Aspire.Hosting.Blazor.Tests (2)
AddDotnetProjectBlazorGatewayTests.cs (1)
42var weatherApi = builder.AddDotnetProject("weatherapi", "weatherapi.csproj", o => o.ExcludeLaunchProfile = true)
BlazorHostedExtensionsTests.cs (1)
43var blazorApp = builder.AddDotnetProject(
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
177var api = builder.AddDotnetProject("api", "api.csproj", options => options.ExcludeLaunchProfile = true); 178builder.AddDotnetProject("worker", "worker.csproj", options => options.ExcludeLaunchProfile = true)
Aspire.Hosting.Dotnet (3)
DotnetProjectHostingExtensions.cs (3)
247return builder.AddDotnetProject(name, path, _ => { }); 261? builder.AddDotnetProject(name, path, _ => { }) 262: builder.AddDotnetProject(name, path, configure => ApplyProjectResourceOptions(configure, options));
Aspire.Hosting.Dotnet.Tests (147)
DotnetProjectBuildCoordinatorTests.cs (110)
45var api = builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true); 105builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 147builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 207builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 276var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 302var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 325var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 348var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 366builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 390var project = builder.AddDotnetProject("api", "Api.csproj", options => options.ExcludeLaunchProfile = true) 412var file = builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 488file = builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 489project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 493project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 494file = builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 572var first = builder.AddDotnetProject("first", firstPath, options => options.ExcludeLaunchProfile = true) 574var second = builder.AddDotnetProject("second", secondPath, options => options.ExcludeLaunchProfile = true) 643var resource = builder.AddDotnetProject( 691var first = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 692var second = builder.AddDotnetProject("api-copy", projectPath, options => options.ExcludeLaunchProfile = true); 705var project = builder.AddDotnetProject("api", "Api.csproj", options => options.ExcludeLaunchProfile = true); 724builder.AddDotnetProject("first", firstProject, options => options.ExcludeLaunchProfile = true); 725builder.AddDotnetProject("second", secondProject, options => options.ExcludeLaunchProfile = true); 726builder.AddDotnetProject("first-copy", firstProject, options => options.ExcludeLaunchProfile = true); 867builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 908var project = builder.AddDotnetProject("service", projectPath, options => options.ExcludeLaunchProfile = true); 1095var api = builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true) 1097var worker = builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 1150var api = builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true) 1152builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 1174builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true); 1175builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 1196var api = builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true) 1201builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 1225builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true); 1226builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 1249builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true); 1250builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 1288builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true); 1310var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true); 1339var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1375var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1415var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1485var api = builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true) 1487var worker = builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true); 1514builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1537builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1560var resource = builder.AddDotnetProject("app", appPath, options => options.ExcludeLaunchProfile = true); 1580builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1625var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1749builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1829builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1880builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 1948builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 2020var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 2070var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true); 2115builder.AddDotnetProject("api", apiPath, options => options.ExcludeLaunchProfile = true); 2116var worker = builder.AddDotnetProject("worker", workerPath, options => options.ExcludeLaunchProfile = true) 2143var project = builder.AddDotnetProject("worker", projectPath, options => options.ExcludeLaunchProfile = true) 2172builder.AddDotnetProject("active", activePath, options => options.ExcludeLaunchProfile = true); 2173var removed = builder.AddDotnetProject("removed", removedPath, options => options.ExcludeLaunchProfile = true); 2196builder.AddDotnetProject("active", activePath, options => options.ExcludeLaunchProfile = true); 2197var replaced = builder.AddDotnetProject("replaced", replacedPath, options => options.ExcludeLaunchProfile = true); 2223var project = builder.AddDotnetProject("project", projectPath, options => options.ExcludeLaunchProfile = true); 2224var file = builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 2280var first = builder.AddDotnetProject("first", firstPath, options => options.ExcludeLaunchProfile = true); 2281var second = builder.AddDotnetProject("second", secondPath, options => options.ExcludeLaunchProfile = true); 2339builder.AddDotnetProject("linked", aliasProjectPath, options => options.ExcludeLaunchProfile = true); 2340builder.AddDotnetProject("other", otherProjectPath, options => options.ExcludeLaunchProfile = true); 2422var project = builder.AddDotnetProject("service", projectPath, options => options.ExcludeLaunchProfile = true); 2452var project = builder.AddDotnetProject("service", projectPath, options => options.ExcludeLaunchProfile = true); 2485var project = builder.AddDotnetProject("service", projectPath, options => options.ExcludeLaunchProfile = true); 2518builder.AddDotnetProject("service", projectPath, options => options.ExcludeLaunchProfile = true); 2519builder.AddDotnetProject("service-copy", projectPath, options => options.ExcludeLaunchProfile = true) 2545builder.AddDotnetProject("service", projectPath, options => options.ExcludeLaunchProfile = true); 2546builder.AddDotnetProject("service-copy", projectPath, options => options.ExcludeLaunchProfile = true) 2548var missing = builder.AddDotnetProject("missing", missingPath, options => options.ExcludeLaunchProfile = true); 2549var removed = builder.AddDotnetProject("removed", removedPath, options => options.ExcludeLaunchProfile = true); 2579builder.AddDotnetProject("first", firstPath, options => options.ExcludeLaunchProfile = true); 2580builder.AddDotnetProject("second", secondPath, options => options.ExcludeLaunchProfile = true); 2643var first = builder.AddDotnetProject("first", firstPath, options => options.ExcludeLaunchProfile = true); 2644var second = builder.AddDotnetProject("second", secondPath, options => options.ExcludeLaunchProfile = true); 2723builder.AddDotnetProject("api", apiProject, options => options.ExcludeLaunchProfile = true) 2725builder.AddDotnetProject("worker", workerProject, options => options.ExcludeLaunchProfile = true) 2784var resource = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true) 2827var resource = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true) 2874builder.AddDotnetProject("first", firstProject, options => options.ExcludeLaunchProfile = true) 2876builder.AddDotnetProject("second", secondProject, options => options.ExcludeLaunchProfile = true) 2924builder.AddDotnetProject("broken", brokenProject, options => options.ExcludeLaunchProfile = true); 2925builder.AddDotnetProject("second", secondProject, options => options.ExcludeLaunchProfile = true) 2984builder.AddDotnetProject("valid", validProject, options => options.ExcludeLaunchProfile = true) 2986var missing = builder.AddDotnetProject("missing", missingProject, options => options.ExcludeLaunchProfile = true); 3031var missing = builder.AddDotnetProject( 3093var project = builder.AddDotnetProject("environment-build", projectPath, options => options.ExcludeLaunchProfile = true) 3135var project = builder.AddDotnetProject("persistent-project", projectPath, options => options.ExcludeLaunchProfile = true) 3190var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3191builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 3221builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3293var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3337var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3372var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3423var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3424builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 3458var project = builder.AddDotnetProject("api", projectPath, options => options.ExcludeLaunchProfile = true); 3459builder.AddDotnetProject("worker", filePath, options => options.ExcludeLaunchProfile = true); 3515builder.AddDotnetProject("environment-build", projectPath, options => options.ExcludeLaunchProfile = true) 3568builder.AddDotnetProject("broken", brokenProject, options => options.ExcludeLaunchProfile = true); 3569builder.AddDotnetProject("worker", fileApp, options => options.ExcludeLaunchProfile = true) 3632builder.AddDotnetProject("broken", brokenProject, options => options.ExcludeLaunchProfile = true); 3633var worker = builder.AddDotnetProject("worker", fileApp, options => options.ExcludeLaunchProfile = true)
DotnetProjectBuildEnvironmentTests.cs (1)
72var project = builder.AddDotnetProject(
DotnetProjectPublicApiTests.cs (1)
89var action = () => builder.AddDotnetProject("app", "app.csproj", configure: null!);
DotnetProjectResourceTests.cs (35)
40var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true); 56var app = builder.AddDotnetProject("svc", appPath, o => o.ExcludeLaunchProfile = true); 72var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true); 83var app = builder.AddDotnetProject("svc", "MyService.csproj", o => o.ExcludeLaunchProfile = true); 100var resource = builder.AddDotnetProject("svc", fileBased ? "service.cs" : "Service.csproj", options => options.ExcludeLaunchProfile = true) 139builder.AddDotnetProject("svc", "Service.csproj", options => options.ExcludeLaunchProfile = true) 156var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true); 178var app = builder.AddDotnetProject("svc", appPath, o => o.ExcludeLaunchProfile = true); 198var resource = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true); 229var resource = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 245var resource = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 263var resource = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 312: builder.AddDotnetProject("file-app", appPath, options => options.ExcludeLaunchProfile = true); 400var resource = builder.AddDotnetProject("project", projectPath, options => options.ExcludeLaunchProfile = true) 426var resource = builder.AddDotnetProject("project", projectPath, options => options.ExcludeLaunchProfile = true) 457builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 482var app = builder.AddDotnetProject("svc", projectDir.FullName, o => o.ExcludeLaunchProfile = true); 500var app = builder.AddDotnetProject("svc", projectDir.FullName, o => o.ExcludeLaunchProfile = true); 510var app = builder.AddDotnetProject("appName", "app-path", options => { options.ExcludeLaunchProfile = true; }); 525var project = builder.AddDotnetProject("svc", projectPath, options => options.ExcludeLaunchProfile = true); 595var resource = builder.AddDotnetProject("testapp", projectPath, o => o.ExcludeLaunchProfile = true).Resource; 609var resource = builder.AddDotnetProject("testapp", appPath, o => o.ExcludeLaunchProfile = true).Resource; 640var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true); 700var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 717var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 790var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 816var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 835var app = builder.AddDotnetProject("svc", appPath, o => o.ExcludeLaunchProfile = true) 870var app = builder.AddDotnetProject("svc", appPath, o => o.ExcludeLaunchProfile = true) 894var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 925var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 956var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 986var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 1015var app = builder.AddDotnetProject("svc", projectPath, o => o.ExcludeLaunchProfile = true) 1058var app = builder.AddDotnetProject("svc", appPath, o => o.ExcludeLaunchProfile = true)
Aspire.Hosting.EntityFrameworkCore.Tests (11)
AddEFMigrationsTests.cs (2)
91var project = builder.AddDotnetProject("myproject", "MyProject.csproj", options => options.ExcludeLaunchProfile = true); 109var project = builder.AddDotnetProject("myproject", "app.cs", options => options.ExcludeLaunchProfile = true);
EFBuildCustomizationWarningTests.cs (5)
37: builder.AddDotnetProject("api", startupPath, options => options.ExcludeLaunchProfile = true); 38var target = builder.AddDotnetProject("target", new Projects.ServiceB().ProjectPath, 107var startup = builder.AddDotnetProject("api", new Projects.ServiceA().ProjectPath, 135var startup = builder.AddDotnetProject("api", new Projects.ServiceA().ProjectPath, 170var startup = builder.AddDotnetProject("api", new Projects.ServiceA().ProjectPath,
EFBuildReadinessTests.cs (1)
91var project = builder.AddDotnetProject("api", new Projects.ServiceA().ProjectPath,
EFMigrationConfigurationTests.cs (2)
209var target = builder.AddDotnetProject("target", "app.cs", options => options.ExcludeLaunchProfile = true); 227? builder.AddDotnetProject("target", "Target.csproj", options => options.ExcludeLaunchProfile = true)
EFMigrationPipelineTests.cs (1)
32var project = builder.AddDotnetProject("api", new Projects.ServiceA().ProjectPath,
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
443var agent = builder.AddDotnetProject("agent", "agent.csproj", options => options.ExcludeLaunchProfile = true)
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
753builder.AddDotnetProject("api", "api.csproj", options => options.ExcludeLaunchProfile = true)
Aspire.Hosting.Radius.Tests (2)
Publishing\BicepGenerationSimpleTests.cs (1)
182builder.AddDotnetProject("webapp", "webapp.csproj", options => options.ExcludeLaunchProfile = true);
RadiusExtensionsTests.cs (1)
196var project = builder.AddDotnetProject("webapp", "webapp.csproj", options => options.ExcludeLaunchProfile = true);