问题
I'm learning about the Blazor
, and see benefit of 2 types client-side
and server-side
.
I want to use both on the same web e.g. one path is a client-side
WebAssembly
app, another path is a server-side
that run code in server.
I have seen Blazor Full-Stack
template (not quite understand) but it missing from latest templates package. Did they remove it on purpose?
(only 2 left Blazor Server App
and Blazor WebAssembly App
)
I download templates from this command.
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview9.19465.2
Can client-side
and server-side
work together?
回答1:
It is not officially supported or build, but, it is in theory possible. However, it is something they are looking into.
Source (watch from 38:35): https://youtu.be/qF6ixMjCzHA?t=1715
来源:https://stackoverflow.com/questions/58131674/how-to-use-both-blazor-client-and-server-in-same-web