【发布时间】:2020-09-29 00:14:27
【问题描述】:
我正在通过我的 Jetbrains Rider IDE 中的 netcoreapp3.0 项目引用为 netstandard2.1 目标构建的类库项目,并遇到兼容性错误。我从 netstandard 官方专用文章 (https://docs.microsoft.com/en-us/dotnet/standard/net-standard) 中的 .NET 实现支持表中了解到,它们应该是兼容的。我的理解是否不正确,netstandard 的概念与“构建应与 .NET Framework 和 .NET core 兼容的 .NET 类库的标准”的概念不同吗?
【问题讨论】:
-
您能否发布确切的错误消息。也可能是c#语言版本不兼容docs.microsoft.com/en-us/dotnet/csharp/language-reference/…
-
IntegrationTests.csproj:[NU1201] UnixUtils 项目与 netcoreapp3.0 (.NETCoreApp,Version=v3.0) 不兼容。 UnixUtils 项目支持:netstandard2.1 (.NETStandard,Version=v2.1)
-
不存在不兼容问题。您应该记住,长期支持版本是 3.1,而不是 3.0。 3.0 已经不支持了。您不应该将 3.0 用于当前或新的开发。 .NET Core was announced years ago 的支持生命周期,因此知道 3.0 甚至在发布之前只会支持几个月
标签: .net .net-core .net-standard-2.1