Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to host server side controllers, with a Blazor Web App (WebAssembly), in .NET 8?

$
0
0

Before .NET 8, hosting server side controllers with a Blazor WebAssembly app was easy. You just clicked the "ASP.NET Core Hosted" checkbox in the project template, and an ASP.NET Core project was created for you, that would host the Blazor WebAssembly client.

With the release of .NET 8, a new template has been introduced called "Blazor Web App". But it does not have the "ASP.NET Core Hosted" checkbox

enter image description here

How am i suposed to host server side controllers then? Does "Blazor Web App" introduce a new system for handling client to server communication?

Microsoft documentation says:

We removed the Blazor Server template, and the ASP.NET Core Hostedoption has been removed from the Blazor WebAssembly template. Both ofthese scenarios are represented by options when using the Blazor WebApp template.

But i am not sure how this scenario is "represented by options when using the Blazor Web App template"


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>