2011-02-18 48 views
9

当运行命令有没有办法从包管理器控制台中看到一个包的完整描述

Get-Package -Remote StructureMap-MVC3 

在包管理器控制台的NuGet,它返回与描述为截断包以下。

Id                     Version                    Description                   
--                     -------                    -----------                   
StructureMap-MVC3                 1.0.1                    Adds the latest version of structuremap and configures it as the default Depende... 
StructureMap-MVC3                 1.0.2                    Adds the latest version of structuremap and configures it as the default Depende... 

有没有一种方法来查询包裹从控制台的完整描述?

+0

现在,您应该使用`Find-Package {package name}`命令,因为`Get-Package -Remote`已被弃用并将被删除。 – Esen 2016-12-23 10:45:51

回答

12

是的,你可以的,如果你写的是这样的:

Get-Package -Remote StructureMap-MVC3 | fl 

默认情况下,我们将展示以简洁的方式,使更多的东西适合在较小的空间FL(简称格式列表),结果将显示在属性一个细节视图。

+0

不可能自动调整所有三列,即`Id`,`Versions`和`Description`保持表格输出完好无损,而不是进入列表视图? – RBT 2017-07-08 10:48:51

+0

命令“Get-Package |”还有其他参数吗? ft -AutoSize`,我可以使用它以便所有三个输出列在表视图中自动扩展。我不介意这是否会导致水平滚动条。 – RBT 2017-07-09 07:16:14

10

你可以得到标准输出,与大小以适应这样的第一列:

Get-Package | ft -AutoSize

这将确保你需要的是可见的所有信息。

相关问题