c# - 为什么 Paket 安装的包比 Nuget 多?

标签 c# .net f# nuget paket

为什么 Paket 默认安装的包比 Nuget 多?这是正常行为还是我做错了什么?

我关注了Getting Started guide (但在我通过 choco install paket.powershell 安装的 paket.powershell 的帮助下):

  • 我做了一个新的 WPF 项目
  • 使用Paket-Init 命令初始化Paket
  • nuget reactiveui 添加到 paket.dependencies 文件
  • 执行Paket-Install命令下载包

因此,我的 packages 文件夹中有以下内容:

reactiveui
reactiveui-core
Rx-Core
Rx-Interfaces
Rx-Linq
Rx-Main
Rx-PlatformServices
Rx-WindowStoreApps
Rx-WinRT
Rx-Xaml
Splat
System.Collections
System.Diagnostics.Debug
System.Diagnostics.Tools
System.IO
System.Linq
System.Linq.Expressions
System.ObjectModel
System.Reflection
System.Reflection.Extensions
System.Runtime
System.Runtime.Extensions
System.Runtime.InteropServices.WindowsRuntime
System.Runtime.Serialization.Primitives
System.Runtime.Serialization.Xml
System.Text.Encoding
System.Threading
System.Threading.Tasks

当从 VS 包管理器控制台使用标准的基于 nuget 的 Install-Package reactiveui 时,我有:

reactiveui-core.7.0.0
reactiveui.7.0.0
Rx-Core.2.2.5
Rx-Interfaces.2.2.5
Rx-Linq.2.2.5
Rx-Main.2.2.5
Rx-PlatformServices.2.2.5
Rx-XAML.2.2.5
Splat.1.6.0

第一个结果非常分散所有这些依赖项。或者它应该如何?我觉得我错过了一些额外的限制/限制参数......

最佳答案

(发表我的评论作为答案)

当您没有指定框架时会发生这种情况。

将“nuget reactiveui”更改为类似“nuget reactiveui framework: net45”的内容。

关于c# - 为什么 Paket 安装的包比 Nuget 多?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41202701/

相关文章:

f# - extern 访问修饰符不起作用

c# - 属性路由和RouteLink

.net - 使用 ApplicationSettings 存储 WinForms RadioButtons 的 Checked 属性

c# - Java 或 Python 中的 Duplicate\K 功能?

c# - .NET 的 STEP/EXPRESS 工具

c# - 无法访问已处置的对象

f# - 组合 2 个(或 n)('a -> unit)具有相同 arg 类型的函数

generics - 具有静态解析类型参数的类型的自定义相等性

c# - 按钮数组 : change property

c# - System.DllNotFoundException - 如何导入 SO 文件?