Blazor应用程序-启动时缺少方法异常

时间:2019-08-08 12:23:26

标签: c# blazor

完成文件->新建-> blazor应用程序后,启动时在Configure方法中出现以下错误。 我尝试使用Visual Studio的预览版。我已经安装了.Net Core 3 Preview 7。我也尝试添加异常中提到的nuget包:Microsoft.AspNetCore.Components.Server,但仍在获取异常。有什么建议吗?

enter image description here

下面是dotnet --info命令的输出

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview7-012821
 Commit:    6348f1068a

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100-preview7-012821\

Host (useful for support):
  Version: 3.0.0-preview8-28376-13
  Commit:  b56f4d3e9c

.NET Core SDKs installed:
  2.1.701 [C:\Program Files\dotnet\sdk]
  2.1.801 [C:\Program Files\dotnet\sdk]
  2.2.301 [C:\Program Files\dotnet\sdk]
  3.0.100-preview7-012821 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0-preview8.19376.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0-preview8-28376-13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0-preview8-28376-13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

0 个答案:

没有答案