I have a old Blazor project that I created back in like 2022. It used .NET 5. It has the old structure: - Client - Server - Shared As far as I remember back I only had to start the Server project which would then start the API and also make the Client available (since it's a WASM project). But now when I run
dotnet run
dotnet run
the web app does start, but it stays in the Loading... screen forever.
From rider I can't even run it at all, the whole launch configurations are missing...
Then I tried to create a new blazor project from templates, only to discover that using
dotnet new blazorwasm --hosted
dotnet new blazorwasm --hosted
doesn't work anymore.
I also tried starting both the Server and Client projects, which finally showed the WebApp correctly but it always gave API errors because of some weird corss-site stuff. But I don't think that's really meant to be run like this, both should be run from a single app and port right?
So I have two questions sort of... 1. What do I need to do, to run this old app? 2. How are modern .NET Blazor WASM apps hosted with Web-Apis?