简体   繁体   English

“IApplicationBuilder”不包含“UseWebAssemblyDebugging”的定义

[英]'IApplicationBuilder' does not contain a definition for 'UseWebAssemblyDebugging'

I am creating a new Client-side Blazor PWA and received the following error messages after installing a few NUGET packages:我正在创建一个新的客户端 Blazor PWA 并在安装几个 NUGET 包后收到以下错误消息:

在此处输入图像描述

It looks like this is a known issue, but am confused why it has not been fixed yet as it was reported several months ago: https://youtrack.jetbrains.com/issue/RIDER-46561看起来这是一个已知问题,但我很困惑为什么它还没有像几个月前报道的那样得到修复: https://youtrack.jetbrains.com/issue/RIDER-46561

Is their a workaround I can do in the meantime?他们是我可以同时做的解决方法吗?

Here are the NUGET packages/versions that I installed if that makes a difference:以下是我安装的 NUGET 软件包/版本,如果有影响的话: 在此处输入图像描述

You need to install the package Microsoft.AspNetCore.Components.WebAssembly.Server您需要安装 package Microsoft.AspNetCore.Components.WebAssembly.Server

I had the same problem and what works for me was to change the target framework to.NET 6我遇到了同样的问题,对我有用的是将目标框架更改为 .NET 6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM