为什么 Paket 安装的包比 Nuget 多?
Why Paket installs way more packages than Nuget?
为什么 Paket 默认安装的包比 Nuget 多?这是正常行为还是我做错了什么?
我关注了Getting Started guide (but with the help of paket.powershell
which I installed by choco install 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"。
为什么 Paket 默认安装的包比 Nuget 多?这是正常行为还是我做错了什么?
我关注了Getting Started guide (but with the help of paket.powershell
which I installed by choco install 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"。