问题描述
为什么默认情况下,Paket安装的软件包比Nuget多?是正常行为还是我做错了什么?
Why Paket installs way more packages than Nuget by default? Is it normal behaviour or am I doing something wrong?
我遵循了入门指南(但在paket.powershell
的帮助下我是通过 choco install paket.powershell
)安装的:
I followed Getting Started guide (but with the help of paket.powershell
which I installed by choco install paket.powershell
):
- 我做了一个新的WPF项目
- 使用
Paket-Init
命令初始化Paket
- 在
paket.dependencies
文件中添加了nuget reactiveui
- 执行
Paket-Install
命令以下载软件包
- I made a new WPF project
- Initialized
Paket
withPaket-Init
command - Added
nuget reactiveui
topaket.dependencies
file - Executed
Paket-Install
command to download packages
结果,我的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
在VS Package Manager控制台中使用基于标准nuget的Install-Package reactiveui
时,我有:
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...
推荐答案
(将我的评论发布为答案)
(Posting my comment as an answer)
当您不指定框架时会发生这种情况.
This happens when you don't specify the framework.
将"nuget reactui框架"更改为"nuget reactui框架:net45".
Change "nuget reactiveui" to something like "nuget reactiveui framework: net45".
这篇关于为什么Paket安装的软件包比Nuget多?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!