升级 Microsoft.Azure.Devices sdk 版本时,System.Web.Http 失败并出现未找到错误

问题描述 投票:0回答:1

我基本上面临着与此处相同的问题:找不到 system.web.http 但这仅当我将 Microsoft.Azure.Devices 版本从 1.5.2 升级到 1.33.0 时才会发生。我反复测试了一下,确定两者确实有关联。我在网上找不到任何其他人提到这一点的实例。我使用的.csproj文件是netstandard2.0

谁能告诉我他们认为发生这种情况的原因是什么,以便我记下来以供参考?

.net azure-iot-hub .net-standard-2.0 system.web.http
1个回答
0
投票

将评论转换为社区利益的答案并代表 OP 发布:

根据m341的评论,

Microsoft.Azure.Devices
的问题得到了
的解决 除了 5.2.7 版之外,还安装 5.2.7 版的
Microsoft.AspNet.WebApi.Core
nuget 包。

enter image description here

enter image description here

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.