添加对 netstandard 2.0 的引用的问题

Problems with adding reference to netstandard 2.0

我将 Asp.Net Core 1.1 应用程序更改为 Core 2.0

这很顺利,但是在我更新了我的 nuget 包之后,我到处都遇到了这个错误

The type 'xxx' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

当我按下按钮添加程序集时,没有任何反应。我多次尝试重建和恢复我的包,但它不起作用

我认为您对 class 库中旧 NETStandard 版本的引用有问题。 只需确保您已从解决方案中的所有 csproj 文件中删除 NETStandard 引用。