我使用的是Powershell5.0中的Find-Package。我需要查询预发行包。这个是可能的吗?
我知道,如果有必要,我可以退回到使用nuget.exe list -prerelease。
发布于 2016-05-12 22:48:18
看起来-AllVersions参数将包括它们。
发布于 2016-05-13 04:28:59
根据nuget powershell documentation,有-IncludePreRelease选项:
Find-Package Id -First -AllVersions -ExactMatch
测试:
PM> Find-Package Microsoft.AspNet.Identity.EntityFramework -Exact Microsoft.AspNet.Identity.Entity...{2.2.1}
PM> Find-Package Microsoft.AspNet.Identity.EntityFramework -Exact -IncludePreRelease Microsoft.AspNet.Identity.Entity...{3.0.0-rc1-final}
发布于 2021-04-20 17:48:09
在Powershell中,您必须使用命令"-AllowPrereleaseVersions“,如下所示:
下面是关于Visual Studio和Powershell中的PackageManager之间的差异的提示:https://docs.microsoft.com/de-de/nuget/reference/ps-reference/ps-ref-find-package
Version 3.0+;本主题介绍Windows上Visual Studio中包管理器控制台中的命令。有关通用包查找命令,请参见PowerShell PackageManagement reference。
https://stackoverflow.com/questions/37190327
复制相似问题