'How to serve Blazor web assembly on the path of asp.net core app

Hello i want serve blazor web assembly into a path in the asp.net core mvc app like this

this is asp.net core mvc: example.com and my blazor app run on this path: example.com/admin



Solution 1:[1]

First add the service:

builder.Services.AddServerSideBlazor();

Then add pipeline:

app.MapBlazorHub();

Create a folder Components as an example and add .razor file.

You can check out : Using Blazor in Your Existing ASP.Net Core MVC Applications which is a good starting point.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohi