I can't find the Blazor Web Assembly option, I only see two options the Blazor Web App and the standalone Web Assembly application but none of them give me the ASP .NET Core Hosted option, why?

Carlos Enrique Canales L�pez 0 Reputation points
2025-01-20T17:12:21.9833333+00:00

I do have a question related to this topic because I want to start a project with the Blazor WebAssembly App template but it is no longer only those two that you mention. according to a video it should look like this: User's image

I would like to know if the way I have it is the same or similar: Imagen cargada

and the result of the video after finishing it looks like this with the file explorer but I get it without the .Shared section at the end : User's image

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,770 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,658 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,268 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 70,686 Reputation points
    2025-01-20T17:15:46.7166667+00:00

    No, you pick client as the interactive render mode to create an asp.net hosted WASM blazor app.


  2. Tiny Wang-MSFT 3,066 Reputation points Microsoft Vendor
    2025-01-21T02:50:51.1733333+00:00

    Hi @Carlos Enrique Canales L�pez , the screenshot you shared already gave you the answer. It has to choose .Net version before .Net 8.

    In .Net 8, blazor imports a new template named blazor web app and removed blazor server, and the ASP.NET Core Hosted option has been removed from the Blazor WebAssembly template too. You can see the description in this section.

    So that if you choose .Net 7 or .Net 6, you will be able to see this option. But both of the versions are out of support now.

    User's imageUser's image


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Tiny


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.