【发布时间】:2020-06-07 20:22:38
【问题描述】:
我在 Visual Studio 中创建了 blazor 应用程序之后。当我尝试运行或构建应用程序时出现此错误。
我使用了dotnet restore 和dotnet build。
【问题讨论】:
标签: build compiler-errors blazor setup-project blazor-client-side
我在 Visual Studio 中创建了 blazor 应用程序之后。当我尝试运行或构建应用程序时出现此错误。
我使用了dotnet restore 和dotnet build。
【问题讨论】:
标签: build compiler-errors blazor setup-project blazor-client-side
对我来说,安装 2.1 SDK 就可以了。这是它的链接:https://dotnet.microsoft.com/download/dotnet/2.1
【讨论】:
这是我的解决方案https://github.com/dotnet/aspnetcore/issues/20857
如果您检查构建输出窗口,您可能会看到更有用的错误,例如:
这表明我需要从 https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-3.1.5-windows-hosting-bundle-installer 安装最新的 .NET 运行时
【讨论】:
我将 Visual Studio 更新到 2019 v16.9.2 并为我修复了它。 我还阅读了另一篇文章,其中修复 VS 安装解决了问题。 在一切都工作了一段时间后,我的问题神秘地开始了,所以我认为这不是版本的问题。我认为只是运行升级修复了安装。
【讨论】: