gpt4 book ai didi

c# - 添加 Microsoft.AspNetCore 程序包后无法解析 System.Runtime.InteropServices.RuntimeInformation

转载 作者:行者123 更新时间:2023-11-30 21:38:21 46 4
gpt4 key购买 nike

我遇到了以下问题。

我创建了一个针对 .net Framework 4.6.2 的新 lib 项目并通过 NuGet 引用 System.Runtime.InteropServices.RuntimeInformation 包。 (对象浏览器显示该 dll 的版本为 4.0.1.0,(在 nuget 中我指向安装版本 4.3))

我重新加载项目,检查引用是否有问题。

现在我安装 Microsoft.AspNetCore,我重新加载项目,并引用System.Runtime.InteropServices.RuntimeInformation 和 System.Net.Htpp 都不见了。

enter image description here

附言。安装 .netstandard 包没有帮助。

有没有人遇到过类似的问题?

最佳答案

System.Runtime.InteropServices.RuntimeInformation 支持.net framework 的最低版本是4.7.1。您可以在System.Runtime.interopservices.runtimeinformation中查看详细信息

关于c# - 添加 Microsoft.AspNetCore 程序包后无法解析 System.Runtime.InteropServices.RuntimeInformation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46034642/

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