I have .NET 8.0.405 installed.
The Hosted Blazor WebAssembly template you are looking for does not exist in .NET 8 because the project and framework are no longer supported. The template exists in .NET 7.0 and 6.0 SDKs though.
I can create Blazor projects from the command line but would like to have them available in Visual Studio too.
In my opinion, the simplest solution is to install SDK 7 and use the command line to generate the deprecated projects that target a unsupported framework version.
You could go back to an earlier version of Visual Studio, a version before .NET 8. But that seems counter productive.
Another option is to add a global.json file to the root of your project that targets 7.
https://learn.microsoft.com/en-us/dotnet/core/tools/global-json
{
"sdk": {
"version": "7.0.410"
}
}
Of course you must have Installed SDK 7. When I did this I was able to pick the Blazor WebAssembly Empty App project. From there I had the Hosted option which generated the three projects; server, client, and shared.