Daily build: blazor.boot.json not found. #48879
-
I'm trying out Blazor SSR with WebAssembly in a daily build - with an issue. When I load the WebAssembly component the What am I missing? Daily build of SDK version: 8.0.100-preview <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0-preview.6.23317.1" />
</ItemGroup>
</Project> using StoreSite;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddServerComponents()
.AddWebAssemblyComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
//app.UseWebAssemblyDebugging();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.MapRazorComponents<App>()
.AddServerRenderMode()
.AddWebAssemblyRenderMode();
app.Run(); @page "/counter"
@attribute [RenderModeWebAssembly]
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Does anyone know how to solve this? |
Beta Was this translation helpful? Give feedback.
-
The new "web" template doesn't support WebAssembly yet https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-8-preview-5/#blazor
|
Beta Was this translation helpful? Give feedback.
The new "web" template doesn't support WebAssembly yet https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-8-preview-5/#blazor