gpt4 book ai didi

c# - 找不到程序集“mscorlib,版本 = 2.0.5.0

转载 作者:太空狗 更新时间:2023-10-29 23:43:16 24 4
gpt4 key购买 nike

我已将 System.Net.Http 更新到 4.3.3,从那时起我就收到此错误。一个问题是为什么它仍在获取 System.Net.Http 2.2.9 文件,而它不存在于 packages 文件夹中。 System.Net.Http.Extensions 不在我的引用列表中。我在哪里可以获得最新的dll?感谢任何帮助。

这是详细模式下的构建日志

Could not resolve this reference. Could not locate the assembly "mscorlib, 
Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e,
Retargetable=Yes". Check to make sure the assembly exists on disk. If this
reference is required by your code, you may get compilation errors.
6> For SearchPath"E:..\packages\Microsoft.Net.Http.2.2.29\lib\net45".
6> Considered
"E:..\packages\Microsoft.Net.Http.2.2.29\lib\net45\mscorlib.winmd", but it didn't exist.
6>Considered
"E:\..\packages\Microsoft.Net.Http.2.2.29\lib\net45\mscorlib.dll", but it didn't exist.
6> Considered
"E:\..\packages\Microsoft.Net.Http.2.2.29\lib\net45\mscorlib.exe", but it didn't exist.
Considered "bin\Release\mscorlib.winmd", but it didn't exist.
6> Considered "bin\Release\mscorlib.dll", but it didn't exist.
6> Considered "bin\Release\mscorlib.exe", but it didn't exist.
6> Required by "System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL".

最佳答案

您可以检查 nuget 包是否退出使用包管理器控制台重新安装包:

 Update-Package -reinstall 

您需要将所有 dll 从 debug 文件夹 复制到 release 文件夹

还有一件事:确保您的项目文件不是只读的。如果它是只读的,则通过右键单击项目文件夹并选择属性来删除只读属性。在属性屏幕中删除只读复选框。

如果那行不通,请通过 This Link 您会找到有关您的问题的详细信息

关于c# - 找不到程序集“mscorlib,版本 = 2.0.5.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49002722/

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