gpt4 book ai didi

.net-core - 我可以在 netstandard2.0 项目中使用 netstandard1.* 库吗?

转载 作者:行者123 更新时间:2023-12-05 01:10:02 24 4
gpt4 key购买 nike

由于主要版本号已更改,我认为 netstandard2.0 包含与 netstandard1.* 不兼容的更改。

使用 netstandard2.0 项目中的 netstandard1.* 库有什么限制吗?

最佳答案

您可以将任何 netstandard1.* 库与 netstandard2.0 项目一起使用。来自 .NET Standard versioning rules :

Additive: .NET Standard versions are logically concentric circles: higher versions incorporate all APIs from previous versions. There are no breaking changes between versions.

specific for .NET Standart 2. breaking change clarification :

Based on community feedback, we decided not to make .NET Standard 2.0 be a breaking change from 1.x. Instead, .NET Standard 2.0 is a strict superset of .NET Standard 1.6. The plan for handling .NET Framework 4.6.1 and .NET Standard 2.0 is outlined in the spec.


一般来说,您的项目的 .NET Standard 版本会影响以下方面:

  • 版本越高,可用的 API 越多。
  • 版本越低,支持的平台越多。

关于.net-core - 我可以在 netstandard2.0 项目中使用 netstandard1.* 库吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45231657/

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