本文介绍了为什么Paket安装的软件包比Nuget多?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么默认情况下,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 with Paket-Init command
  • Added nuget reactiveui to paket.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多?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 12:25