When upgrading a ASPNET DotNet Core 2.2 to 3.1, you might get this error when compiling:

The hint is in there:

Doing upgrading we no longer need to depend on the above package as it comes standard with 3.1, so we need to remove the reference in our .csproj file.

Simply remove this line:

and then rebuild, or you might have to close and reopen visual studio.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.