No, you pick client as the interactive render mode to create an asp.net hosted WASM blazor app.
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?
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:
I would like to know if the way I have it is the same or similar:
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 :
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | C#
3 answers
Sort by: Most helpful
-
Bruce (SqlWork.com) 79,101 Reputation points Volunteer Moderator
2025-01-20T17:15:46.7166667+00:00 -
Anonymous
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.
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 -
Raymond Huynh (WICLOUD CORPORATION) 620 Reputation points Microsoft External Staff
2025-07-31T08:53:46.6533333+00:00 Hi Carlos,
What you’re experiencing relates to recent changes in the Blazor project templates introduced with .NET 8. This typically occurs when developers are searching for the classic "Blazor WebAssembly App" with the "ASP.NET Core Hosted" option, but only see the new "Blazor Web App" and "Standalone WebAssembly" templates.
Here’s how you can troubleshoot and resolve it:
- In .NET 8, Microsoft has unified the Blazor templates. The "ASP.NET Core Hosted" option is no longer available in the same way. Instead, you should use the "Blazor Web App" template and select the "WebAssembly" render mode for client-side functionality. This approach gives you a similar structure, allowing for both server and client logic, and supports shared code.
- If you specifically need the old "ASP.NET Core Hosted" template, you can still use .NET 7 or .NET 6, where this option is present. However, keep in mind that these versions are out of support, so it’s recommended to adapt to the new template structure if possible.
You can also find a detailed walkthrough in our documentation here:
ASP.NET Core Blazor project structure (Microsoft Docs)
I hope this helps you get things back on track quickly! If you agree with my suggestion, feel free to interact with the system accordingly!