It seems like a fairly easy Task, but for some reason Visual Studio does not show me any Blazor templates besides the server-side hosting model.
3.0.100-preview6-012264
from dotnet --version
. 16.1.6
. Then I tried it in the CLI with the following command dotnet new blazorhosted
like shown in the MSDN . It will only bring up the following error No templates matched the input template name: blazorhosted.
and a list of available templates. But I did manage to create the 'client-side' hosting-model eg dotnet new blazor
, which isn't displayed in VS as well.
I also tried to reinstall .Net Core Preview 6 as well as Visual Studio 2019, but with no success
我想你需要先安装新的blazor模板:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview6.19307.2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.