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!