【问题标题】:Nexus Nuget Repository List Version InformationNexus Nuget 存储库列表版本信息
【发布时间】:2015-06-16 00:19:14
【问题描述】:

我使用 nexus nuget 存储库,我想获取我的版本信息列表

我使用 nuget.exe 并获取所有版本信息,如果我不使用 -allversion 点我访问最新版本

nuget.exe list -Source http://xxxxx/nexus/service/local/nug
et/RepoName/ -allversion

但是我想访问特定的版本,我给出了版本号,我想获取它们的版本号的包列表

有没有可能做这样的事情

nuget.exe 列表 -Source http://xxxxx/nexus/service/local/nug et/RepoName/ -version 1.0.1

然后返回 1.0.1 B 1.0.1 存储库中的 C 1.0.1 ...

【问题讨论】:

    标签: nuget nexus nuget-package


    【解决方案1】:

    我不相信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 查询来获取您要查找的内容。例如

    http://xxxx/nexus/service/local/nuget/RepoName/Packages()?$filter=Version%20eq%20'1.0.1'
    

    【讨论】:

    • 你是对的,我想知道这是否可能,但似乎不可能。所以唯一的方法是使用 odata 和查询存储库,谢谢
    猜你喜欢
    • 2019-11-01
    • 1970-01-01
    • 2018-09-03
    • 1970-01-01
    • 1970-01-01
    • 2016-12-29
    • 2017-03-11
    • 2016-07-27
    • 2019-11-26
    相关资源
    最近更新 更多