Why can't I create a Blazor Server App with .NET 8?

Falanga, Rod, DOH 190 Reputation points
2024-08-20T17:14:53.12+00:00

I'm trying to create a Blazor Server App using .NET 8. I've done this at home, but here at work Visual Studio 2022 only allows me to create a Blazor Server App using .NET 6. I've gotten into Visual Studio Installer, to check to make sure I have .NET 8 as a component, like I do .NET 6. I have both .NET 6 and .NET 8.

I've searched for similar questions here and found Why does Visual Studio create a solution not allow selecting .NET 8? @Anna Xiu-MSFT answer was to use a different Visual Studio template, Blazor Web App. My concern is I need my app to work with Windows Authentication!

I'm using Visual Studio 2022 Enterprise Edition.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,577 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,131 Reputation points
    2024-08-20T20:41:33.1133333+00:00

    the "Blazor Server App" template is retired and only for .net 6. if you want to create .net 8 blazor server app, you use the new template "Blazor Web App" which support both server and client (WASM).

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.