Blazor Server Template Still Exists in .NET 8 — No Deprecation Warning, Confusing UX #61664
Labels
area-blazor
Includes: Blazor, Razor Components
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
This issue has been moved from a ticket on Developer Community.
Blazor Server Template Still Exists in .NET 8 — No Deprecation Warning, Confusing UX
Summary
The
blazorserver
template is still available via the CLI and Visual Studio in .NET 8, but it silently fails to support any framework newer than.NET 6.0
, with no deprecation warning, guidance, or redirect to the new Blazor Web App template.This creates confusion and wastes developer time — especially for those trying to adopt .NET 8 and follow modern Blazor guidance.
Expected Behavior
If a template is deprecated and no longer supports current .NET versions, I would expect:
dotnet new blazorserver -f net8.0
)dotnet new blazorserver -h
) indicating its deprecated statusActual Behavior
dotnet new blazorserver -f net8.0
fails with:Error: Invalid option(s): -f net8.0 'net8.0' is not a valid value for -f. The possible values are: net6.0 - Target net6.0
dotnet new blazor
(Blazor Web App)Consequences
This leads to:
Recommendation
Please:
blazorserver
template as deprecatedEnvironment
Original Comments
Feedback Bot on 4/8/2025, 07:31 AM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We’ll provide an update once the issue has been triaged by the product team.
The text was updated successfully, but these errors were encountered: