Why Paket installs way more packages than Nuget?

2019-04-21 20:45发布

Why Paket installs way more packages than Nuget by default? Is it normal behaviour or am I doing something wrong?

I followed Getting Started guide (but with the help of paket.powershell which I installed by choco install paket.powershell):

  • I made a new WPF project
  • Initialized Paket with Paket-Init command
  • Added nuget reactiveui to paket.dependencies file
  • Executed Paket-Install command to download packages

As a result I have the following in my packages folder:

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

When using standard nuget-based Install-Package reactiveui from VS Package Manager Console, I have:

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

1st outcome is very distracting with all those dependencies. Or is it how it is supposed to be? I feel I miss some additional restricting / confining parameters...

1条回答
叛逆
2楼-- · 2019-04-21 20:47

(Posting my comment as an answer)

This happens when you don't specify the framework.

Change "nuget reactiveui" to something like "nuget reactiveui framework: net45".

查看更多
登录 后发表回答