简体   繁体   English

C# NuGet 警告的含义是什么:Package x 已使用 NET Framework 版本恢复

[英]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.

相关问题 对两个 nuget 包 C# .net 框架使用不同版本的包 - Use Different version of package for two nuget package C# .net framework 可以在使用旧版本 c# 的项目中使用使用较新版本 c# 构建的 NuGet 包吗? - Can a NuGet package built with a newer version of c# be used in a project using an older version of c#? 有没有办法在Nuget中使用Install-Package时指定.NET Framework Version参数? - Is there a way to specify .NET Framework Version argument while using Install-Package in Nuget? 使用NuGet包管理器将c#符号发布到NuGet包 - Publish c# symbols to NuGet package using NuGet Package Manager 如何解决“Package Google Authenticator 1.2.1 was restore using .NETFramework”,但我不想升级到最新版本(C#) - How to resolve “Package Google Authenticator 1.2.1 was restored using .NETFramework”, but I do not want to upgrade to latest version (C#) C#版本的.NET Framework - C# - version of .NET framework 什么是用于指定.net框架版本的C#编译器选项 - what is the C# compiler option for specifying the version of .net framework 修复 WARNING: The target version of the .NET Framework in the project does not match the .NET Framework launch condition version C# Setup Project - Fix the WARNING: The target version of the .NET Framework in the project does not match the .NET Framework launch condition version C# Setup Project 使用C#进行Nuget包下载计数 - Nuget package download count using C# 用于机器人框架版本 4 C# 的自适应卡片 nuget 包 - Adaptive Cards nuget package to be used for bot frameworks version 4 C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM