gpt4 book ai didi

nuget - 如何只更新具有特定ID的NuGet软件包?

转载 作者:行者123 更新时间:2023-12-04 02:10:12 24 4
gpt4 key购买 nike

根据NuGet documentation:

Update Command

Update packages to latest available versions. This command also updates NuGet.exe itself.

Usage nuget update <packages.config|solution>

Options:

Id - Package ids to update.



这表示ID选项是要更新的软件包ID s 。您如何提供多个ID?

这有效:
NuGet.exe update "MySln.sln" -RepositoryPath "MyRepoPath" -id Ref1

...但是您如何同时对Ref2进行加湿处理?这将失败:
NuGet.exe update "MySln.sln" -RepositoryPath "MyRepoPath" -id Ref1,Ref2

我正在尝试更新软件包的子集,并避免了对NuGet.exe进行大量调用的需要。

最佳答案

您可以多次指定-id选项:

NuGet.exe update "MySln.sln" -RepositoryPath "MyRepoPath" -id Ref1 -id Ref2

关于nuget - 如何只更新具有特定ID的NuGet软件包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16296292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com