12

运行命令时

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...

有没有办法从控制台查询包的完整描述?

4

2 回答 2

14

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

Get-Package -Remote StructureMap-MVC3 | fl

默认情况下,我们以简洁的方式显示结果,以便在更小的空间中容纳更多的东西 fl(格式列表的缩写)将在详细信息视图中显示属性。

于 2011-02-19T19:20:08.610 回答
14

您可以获得标准输出,第一列的大小适合如下:

Get-Package | ft -AutoSize

它将确保您需要的所有信息都是可见的。

于 2014-03-01T08:12:10.870 回答