简体   繁体   English

将.NET Framework程序包安装到PCL会尝试安装.NET Standard程序包

[英]Installing .NET Framework package to PCL attempts to install .NET Standard packages

I have a portable class library project targeting .NET Framework 4.5 , and am trying to install System.Reactive.Interfaces to this project. 我有一个针对.NET Framework 4.5的可移植类库项目,并且正在尝试为此项目安装System.Reactive.Interfaces

The dependencies for System.Reactive.Interfaces are NETStandard.Library for a .NETStandard project , but no dependencies for a .NET Framework project. 对于依赖System.Reactive.InterfacesNETStandard.Library.NETStandard project ,但对于一个没有依赖.NET Framework项目。 Therefore this project should install Reactive.Interfaces without needing to install any other packages. 因此,该项目应安装Reactive.Interfaces而不需要安装任何其他软件包。 My project also has a packages.config file, and no project.json or project.lock.json files exist in the solution. 我的项目也有一个packages.config文件,解决方案中不存在project.jsonproject.lock.json文件。

However, attempting to install Reactive.Interfaces prompts me to install all of the System.* packages needed for .NET Core , as well as NETStandard.Library 1.6.0 . 但是,尝试安装Reactive.Interfaces会提示我安装.NET CoreNETStandard.Library 1.6.0所需的所有System.*软件包。 How can I convince Nuget that this is a PCL for .NET Framework 4.5 instead of a .NET Standard project? 我如何使Nuget确信这是.NET Framework 4.5的PCL,而不是.NET Standard项目?

.Net Standrd is like "new" PCL but more complex. .Net Standrd就像“新” PCL,但更为复杂。 Change PCL to .Net Standard Library (if you want still use .Net Framework 4.5 you need to use .NET Standard 1.1). 将PCL更改为.Net标准库(如果您仍要使用.Net Framework 4.5,则需要使用.NET Standard 1.1)。 For more information i recommend this docs 有关更多信息,我推荐此文档

暂无
暂无

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

相关问题 Xamarin从PCL到.NET标准升级-是否看到所有NuGet软件包? - Xamarin Forms PCL to .NET Standard Upgrade - Seeing All NuGet Packages? Nuget package 未安装 in.Net Framework - Nuget package not installing in .Net Framework 自定义.NET Standard Nuget软件包无法正确安装 - Custom .NET Standard Nuget package not installing correctly 无法将NuGet软件包安装到PCL-“软件包不包含与该框架兼容的任何程序集引用或内容文件” - Cannot install NuGet packages to PCL - “package does not contain any assembly references or content files that are compatible with that framework” .Net Standard Nuget安装在Framework 4.5项目中 - .Net Standard Nuget install in Framework 4.5 project 在.NET Core Web API中安装自定义.NET Standard NuGet软件包 - Install custom .NET Standard NuGet Package in .NET Core Web API 自动化 .net 框架包安装:解决包对其他包的依赖 - Automating .net framework package installation: resolving package dependency on other packages Package .NET 框架 DLL 并在 .NET 标准项目中使用 - Package .NET framework DLL and use it in .NET standard project NuGet 包在 a.Net Standard 2.0 dll 被.Net Framework 和.Net Core 使用 - NuGet packages in a .Net Standard 2.0 dll used by both .Net Framework and .Net Core 如何阻止.Net NuGet Package Manager 在安装 Npgsql Package 时安装其他包 - How to stop .Net NuGet Package Manager from installing other packages while installing Npgsql Package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM