Data Dill
Data Dill

Reputation: 415

'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:

enter image description here

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

Is their a workaround I can do in the meantime?

Here are the NUGET packages/versions that I installed if that makes a difference: enter image description here

Upvotes: 11

Views: 6570

Answers (3)

Lei
Lei

Reputation: 528

The Microsoft.AspNetCore.Components.WebAssembly.Server package main version number (like 7.x.x -> 7) should match the target framework version number.

Upvotes: 6

Rufaida Shafiq
Rufaida Shafiq

Reputation: 103

You need to install the package Microsoft.AspNetCore.Components.WebAssembly.Server

Upvotes: 8

maisels
maisels

Reputation: 19

I had the same problem and what works for me was to change the target framework to.NET 6

Upvotes: 0

Related Questions