gpt4 book ai didi

asp.net-core - .netcore 1.1 "assembly' s list 定义与程序集引用不匹配”

转载 作者:行者123 更新时间:2023-12-02 09:06:56 25 4
gpt4 key购买 nike

我有一个正在使用 net451 运行的 .netcore 1.1 应用程序。我将目标框架更改为 net462,清除了 bin/nuget 包,重建了 everything/dotnet Restore,并且编译正常。当我从 System.Http.Net 库访问方法时,应用程序抛出以下异常。

System.IO.FileLoadException: Could not load file or assembly System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 at System.Net.Http.WinHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

如何进一步调试此问题?我使用的是 win10-x64 和 vs2017 RC。

最佳答案

我也遇到了同样的问题。更新后.Net Core SDK到最新版本,问题已经消失。

关于asp.net-core - .netcore 1.1 "assembly' s list 定义与程序集引用不匹配”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40934875/

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