We need a Blazor WebAssembly new-project template with ASP.NET hosting that allows new adopters to actually be able to adopt Blazor WebAssembly (sic) - like we used to have before .NET 8 #59887
Labels
area-blazor
Includes: Blazor, Razor Components
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
It's very difficult for new adopters to get a classic
Client
,Server
,Shared
, ASP.NET-hosted Blazor WebAssembly (BWA) solution because the current new-project template won't generate one. It doesn't clearly identify theServer
project, it omits aShared
project, and it doesn't show how theClient
project would get data from theServer
(it fakes it!). It also asks questions of a new user that they couldn't possibly answer ("Interactivity Location").Beginners aren't even going to know that a
Shared
project (class library) is common and natural, nor that shared data model classes are a thing.This not only harms new adoption rates, it also makes it harder for seasoned pros who started before November 2023 to stand up a new BWA website without a lot of referring back to previous solutions, and a lot of manual editing.
If I was looking at Blazor WebAssembly as something I might adopt right now, in January 2025, the fact that the
Client
project fakes the loading of the data from the server - giving me no idea of how to do it for real - would mean a hard pass. Back to Angular or React or whatever. What an EPIC FAIL.For further confirmation of how bad this is see here:-
Quote from the last link above: "The new templates are horrible for beginners."
The huge, current worry is that the closest outstanding issue that touches on this - started by @SteveSandersonMS himself - is backlogged!
Without this being done soon, and certainly by the .NET 10 milestone, I fear for the future of Blazor WebAssembly as something thriving and growing and living. As things currently stand, Blazor is a "closed club" - understandable and navigable only by those of us who achieved escape velocity because we were lucky enough to adopt before November 2023.
Describe the solution you'd like
There should be a new-project template that:-
Client
,Server
andShared
projects, like we had before .NET 8Server
project needs to be named as such, as beforeClient
project how to get data from a controller action in theServer
project via a shared data model class in theShared
projectMore generally: stop making Blazor the "closed club" that it currently is.
Additional context
No response
The text was updated successfully, but these errors were encountered: