gpt4 book ai didi

c# - 添加对 netstandard 2.0 的引用的问题

转载 作者:太空狗 更新时间:2023-10-29 17:57:51 26 4
gpt4 key购买 nike

我将我的 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'.

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

最佳答案

我认为您在类库中引用旧版 NETStandard 时遇到了问题。只需确保已从解决方案中的所有 csproj 文件中删除 NETStandard 引用即可。

关于c# - 添加对 netstandard 2.0 的引用的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45699238/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com