10

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

我遵循了入门指南(但在paket.powershell我安装的帮助下choco install paket.powershell):

  • 我做了一个新的 WPF 项目
  • PaketPaket-Init命令初始化
  • 添加nuget reactiveuipaket.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

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

4

1 回答 1

11

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

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

将“nuget reactiveui”更改为“nuget reactiveui 框架:net45”。

于 2016-12-20T22:54:38.420 回答