Blazor WebAssembly ASP.NET Core Hosted in .NET 8 🔥
Why Stack Overflow recommends it
Stack Overflow users link it when they need the traditional hosted Blazor WASM setup (server hosting the client plus shared project) that .NET 8 no longer offers as a template.
Recommended by 2 people across 2 different months, 2024 to 2024.
What it is
A 15-minute tutorial by Patrick God that shows how to rebuild the old 'ASP.NET Core Hosted' Blazor WebAssembly solution structure in .NET 8, where that template option was removed. It starts from the .NET 7 layout, then manually sets up the Server, Client and Shared projects, dependencies, launch settings and final code changes.
What people said
Recommends Draq · 2024-03 · Stack Overflow · on “Blazor WASM - JavaScript not supported on Linux”
I solved the issue by making blazor wasm hosted by ASP. (there is non option to do that with project creation on .net 8, need to be done manually) How i did it? Create . net 7 blazor wasm with ASP hosted checkbox On, solution. Upgrade all projects to .net 8, update nugets etc and .net 8 blazor wasm ASP hosted is working as well Other way is: Change .net 8 wasm project to ASP Hosted [this video]
Recommends jondow · 2024-06 · Stack Overflow · on “How to host server side controllers, with a Blazor Web App (WebAssembly), in .NET 8?”
This video provides a good explanation of how to achieve the traditional .NET 7 hosted WASM solution structure using .NET standalone Blazor and web API projects. [this video]
Cites ms4sman · 2024-04 · Stack Overflow · on “Failed to find a valid digest in 'integrity' for the resource blazor.boot.json in .NET 8 hosted Blazor WebAssembly PWA”
I'm working on a .NET 8 Blazor WASM PWA project. I've basically recreated the old template that used to be called "hosted" by following this video [this video] . I followed this post [LINK] in order to set it up to notify the user when an updated version is available. But it seems to only work inconsistently. Sometimes when I make a change to my app and deploy it, the currently running apps almost instantly notify me that there's an update. Other times, it takes a few minutes to a few hours, or even not at all. And during the time when its not notifying me of the update, I'm getting this error in the console. Failed to find a valid digest in the 'integrity' attribute for resource 'https://<my dom