Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nuget 如何配置PackageManager控制台以显示长版本字符串_Nuget - Fatal编程技术网

Nuget 如何配置PackageManager控制台以显示长版本字符串

Nuget 如何配置PackageManager控制台以显示长版本字符串,nuget,Nuget,我使用Get包列出特定库的所有可用版本。但是,版本字符串太长,最后的实际版本号被删除。我该怎么做才能让它表现出来 下面是示例输出 Id Version Description/Release Notes --

我使用Get包列出特定库的所有可用版本。但是,版本字符串太长,最后的实际版本号被删除。我该怎么做才能让它表现出来

下面是示例输出

Id                             Version              Description/Release Notes                                                                              
--                             -------              -------------------------                                                                              
xunit                          2.0.0-beta4-build... xUnit.net  ....
xunit.core                     2.0.0-beta4-build... Includes .... 

我需要“2.0.0-beta4-build”结尾的信息

一种方法是使用PowerShell的格式列表更改格式

get-package | format-list -property id, version
上述PowerShell命令将显示类似以下内容的输出:

Id      : xunit
Version : 2.0.0-beta4-build2738

Id      : xunit.abstractions
Version : 2.0.0-beta4-build2738

Id      : xunit.assert
Version : 2.0.0-beta4-build2738

Id      : xunit.core
Version : 2.0.0-beta4-build2738