我使用nexus nuget存储库,我想获取我的版本信息列表
我使用nuget.exe并获取所有版本信息,如果我不使用-allversion点我访问最新版本
nuget.exe list -Source http://xxxxx/nexus/service/local/nug
et/RepoName/ -allversion
但是我想访问特定版本,我给出版本号,我想要获取其版本号的包列表
是否可以做类似的事情
nuget.exe list -Source http://xxxxx/nexus/service/local/nug et / RepoName / -version 1.0.1
并返回 A 1.0.1 B 1.0.1 存储库中的C 1.0.1 ......
答案 0 :(得分:0)
我不相信nuget.exe
支持-version
旗帜:
$ nuget.exe list -?
usage: NuGet list [search terms] [options]
Displays a list of packages from a given source. If no sources are specified, all sources defined in %AppData%\NuGet\NuGet.config are used. If NuGet.config specifies no sources, uses the default NuGet feed.
Specify optional search terms.
options:
-Source + A list of packages sources to search.
-Verbose Displays a detailed list of information for each package.
-AllVersions List all versions of a package. By default, only the latest package version is displayed.
-Prerelease Allow prerelease packages to be shown.
-Help (?) help
-Verbosity Display this amount of details in the output: normal, quiet, detailed.
-NonInteractive Do not prompt for user input or confirmations.
-ConfigFile The NuGet configuration file. If not specified, file %AppData%\NuGet\NuGet.config is used as configuration file.
For more information, visit http://docs.nuget.org/docs/reference/command-line-reference
但是,您可以对nuget图库服务使用OData查询来获取您要查找的内容。 e.g。
http://xxxx/nexus/service/local/nuget/RepoName/Packages()?$filter=Version%20eq%20'1.0.1'