Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<IsAspireHost>true</IsAspireHost>
<EntryPointAccessibility>public</EntryPointAccessibility>
<UserSecretsId>AC87AA5B-4B37-4E52-8468-2D5DF24AF256</UserSecretsId>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//+:cnd:noEmit
using Projects;
using Microsoft.Extensions.Hosting;

var builder = DistributedApplication.CreateBuilder(args);
Expand Down Expand Up @@ -43,7 +42,7 @@
.WithDataVolume();
//#endif

var serverWebProject = builder.AddProject<Boilerplate_Server_Web>("serverweb") // Replace . with _ if needed to ensure the project builds successfully.
var serverWebProject = builder.AddProject("serverweb", "../Boilerplate.Server.Web/Boilerplate.Server.Web.csproj")
.WithExternalHttpEndpoints();

// Adding health checks endpoints to applications in non-development environments has security implications.
Expand All @@ -54,7 +53,7 @@
}

//#if (api == "Standalone")
var serverApiProject = builder.AddProject<Boilerplate_Server_Api>("serverapi") // Replace . with _ if needed to ensure the project builds successfully.
var serverApiProject = builder.AddProject("serverapi", "../Boilerplate.Server.Api/Boilerplate.Server.Api.csproj")
.WithExternalHttpEndpoints();

// Adding health checks endpoints to applications in non-development environments has security implications.
Expand Down Expand Up @@ -98,7 +97,7 @@
//#endif

// Blazor WebAssembly Standalone project.
builder.AddProject<Boilerplate_Client_Web>("clientwebwasm"); // Replace . with _ if needed to ensure the project builds successfully.
builder.AddProject("clientwebwasm", "../../Client/Boilerplate.Client.Web/Boilerplate.Client.Web.csproj");

if (builder.ExecutionContext.IsRunMode) // The following project is only added for testing purposes.
{
Expand All @@ -112,7 +111,7 @@
//#endif

// Blazor Hybrid Windows project.
builder.AddProject<Boilerplate_Client_Windows>("clientwindows") // Replace . with _ if needed to ensure the project builds successfully.
builder.AddProject("clientwindows", "../../Client/Boilerplate.Client.Windows/Boilerplate.Client.Windows.csproj")
.WithExplicitStart();

//#if (api == "Standalone")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static async Task Initialize(TestContext testContext)
private static async Task RunAspireHost(TestContext testContext)
{
var aspireBuilder = await DistributedApplicationTestingBuilder
.CreateAsync<Projects.Boilerplate_Server_AppHost>(testContext.CancellationToken);
.CreateAsync<Program>(testContext.CancellationToken);

foreach (var res in aspireBuilder.Resources.OfType<ProjectResource>().ToList())
aspireBuilder.Resources.Remove(res);
Expand Down
Loading