Skip to content

Commit 11ef98a

Browse files
committed
Prevent client wasm project from automatically starting (#11521)
1 parent e18d8df commit 11ef98a

File tree

1 file changed

+4
-3
lines changed
  • src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost

1 file changed

+4
-3
lines changed

src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@
9696
//#endif
9797
//#endif
9898

99-
// Blazor WebAssembly Standalone project.
100-
builder.AddProject("clientwebwasm", "../../Client/Boilerplate.Client.Web/Boilerplate.Client.Web.csproj");
101-
10299
if (builder.ExecutionContext.IsRunMode) // The following project is only added for testing purposes.
103100
{
101+
// Blazor WebAssembly Standalone project.
102+
builder.AddProject("clientwebwasm", "../../Client/Boilerplate.Client.Web/Boilerplate.Client.Web.csproj")
103+
.WithExplicitStart();
104+
104105
var mailpit = builder.AddMailPit("smtp") // For testing purposes only, in production, you would use a real SMTP server.
105106
.WithDataVolume("mailpit");
106107

0 commit comments

Comments
 (0)