cmd C:\Users\donhuvy>dotnet --version
3.0.100-preview8-013656 和 Microsoft Windows [Version 10.0.16299.1087]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\donhuvy>dotnet new --help
Usage: new [options]
Options:
-h, --help Displays help for this command.
-l, --lis
是否可以将blazor组件呈现为字符串,这样我就可以呈现静态HTML。我知道在哪里可以将MVC视图渲染为字符串。我需要做的是做一个方法来创建静态HTML页面,将下载到WPF应用程序,然后用户可以在浏览器中打开它?这是MVC app的流行答案:How to render an ASP.NET MVC view as a string?,那么Blazor也有类似的答案吗?我不需要用Blazor来做这件事,但是web是用Blazor做的,所以它会很好。
(我知道现有的非常相似,但不完全相同,而且还没有解决方案)
在我的mac (Catalina10.15.7)上,我通过这个.NET没有问题地安装了这个内核。
命令
dotnet --help
正确返回帮助。
当尝试初始化一个新项目时,它会失败,因为:
$ dotnet new –lang f#
Getting ready...
Couldn't find an installed template that matches the input, searching online for one that does...
No templates found matching: '
当我试图编译我的WebAssembly应用程序时,我得到了这个错误。
error CS0234: The type or namespace name 'ApplicationPartAttributeAttribute' does not exist in the namespace 'Microsoft.AspNetCore.Mvc.ApplicationParts' (are you missing an assembly reference?)
原因是因为我使用的是一个使用Microsoft.AspNetCore.Mvc.Core的库,它似乎与blazo