简体   繁体   English

如果支持 .Net Standard 2.0 的 nuget 包,那么我们可以在 asp.net 和 asp.net core 中使用该包吗?

[英]If a nuget Package is .Net Standard 2.0 supported then can we use that package in asp.net as well as asp.net core?

我正在将 asp.net 应用程序迁移到 .net core ,我只有使用的包列表(不是代码)所以需要知道如果一个包支持 .Net Standard 2.0 那么相同的包可以用于.net 核心 3.0?

As this document indicates that:正如 本文件所指出的那样:

Net Standard 2.0 supports >= Net Core 2.0 . Net Standard 2.0支持>= Net Core 2.0

Net standard itself is compatible with net framework and net core at the same time, you only need to pay attention to the version it supports. Net 标准本身同时兼容net frameworknet core ,你只需要关注它支持的版本。

So if your packages support net standard 2.0 , they will be installed into Net Core 3.0 without any errors.因此,如果您的软件包支持net standard 2.0 ,它们将被安装到Net Core 3.0而不会出现任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们可以将哪个版本的Nancy软件包用于asp.net core 2.0? - What version of Nancy package can we use for asp.net core 2.0? ASP.NET Core 中的 NuGet 包位置在哪里? - Where's the NuGet package location in ASP.NET Core? ASP.NET NuGet Package 依赖关系不会更新 - ASP.NET NuGet Package Dependency Will Not Update 为ASP.NET 4和ASP.NET Core 1.0创建一个Nuget包 - Create one Nuget Package for both ASP.NET 4 & ASP.NET Core 1.0 In .NET Core, ASP.NET Core - What is the relationship between Package, Reference, NuGet Package, DLL file, Namespace - In .NET Core, ASP.NET Core - What is the relationship between Package, Reference, NuGet Package, DLL file, Namespace 如何在ASP.NET vNext中使用nuget包? - How to use nuget package in ASP.NET vNext? 添加.Net Standard 2.0 package 后的 ASP.Net MVC ASPNETCOMPILER 问题 - ASP.Net MVC ASPNETCOMPILER issues after adding .Net Standard 2.0 package System.Net.Http Nuget包与ASP.NET Core应用程序之间的依赖性不匹配 - System.Net.Http Dependency Mismatch between Nuget package and ASP.NET Core app 升级到ASP.NET Core 2.0后出现NuGet错误 - NuGet Errors After Upgrading to ASP.NET Core 2.0 不能将Asp.net核心2.0与实体框架6一起使用 - Can't use Asp.net core 2.0 with entity framework 6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM