[英]C# What are implications of NuGet warning: Package x was restored using NET Framework version
I do know that this warning means that the package is not compatible with my project's version.我知道这个警告意味着 package 与我的项目版本不兼容。 In my case it's NET3.1, and the package requires NET Framework at least 4.6.1.
就我而言,它是 NET3.1,而 package 至少需要 NET Framework 4.6.1。 I would change target of my project to NET Framework but I need interface default implementations which seem to not work in NET Framework.
我会将项目的目标更改为 NET Framework,但我需要在 NET Framework 中似乎不起作用的接口默认实现。
But anyway my question is: If all used functions of the package seem to work fine and I ignore these warnings, then release my application, would it mean that my app is fully functional but just needs "both" .NET3.1 and NET Framework?但无论如何我的问题是:如果 package 的所有使用功能似乎都可以正常工作并且我忽略这些警告,然后发布我的应用程序,这是否意味着我的应用程序功能齐全但只需要“两者”.NET3.1 和 NET Framework ?
You can either use .NETCore runtime or .NET Framework runtime.您可以使用 .NETCore 运行时或 .NET 框架运行时。 For interop between the two there is .NET Standard which can be used by both runtimes.
对于两者之间的互操作,有 .NET 标准可供两个运行时使用。
I would personally by no means release an application ignoring this warning.我个人绝不会发布忽略此警告的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.