NuGetAuthenticate@0 - NuGet 对 v0 任务进行身份验证
此版本的任务已弃用。 请改用 NuGetAuthenticate@1。 使用此任务将 NuGet 工具配置为使用 Azure Artifacts 和其他 NuGet 存储库进行身份验证。 需要 NuGet >= 4.8.5385、dotnet >= 2.1.400 或 MSBuild >= 15.8.166.59604。
使用此任务将 NuGet 工具配置为使用 Azure Artifacts 和其他 NuGet 存储库进行身份验证。 需要 NuGet >= 4.8.5385、dotnet >= 2.1.400 或 MSBuild >= 15.8.166.59604。
语法
# NuGet authenticate v0
# This version of the task is deprecated, use NuGetAuthenticateV1 instead. Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 2.1.400, or MSBuild >= 15.8.166.59604.
- task: NuGetAuthenticate@0
inputs:
#nuGetServiceConnections: # string. Service connection credentials for feeds outside this organization.
#forceReinstallCredentialProvider: false # boolean. Reinstall the credential provider even if already installed. Default: false.
# NuGet authenticate v0
# Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 2.1.400, or MSBuild >= 15.8.166.59604.
- task: NuGetAuthenticate@0
inputs:
#nuGetServiceConnections: # string. Service connection credentials for feeds outside this organization.
#forceReinstallCredentialProvider: false # boolean. Reinstall the credential provider even if already installed. Default: false.
输入
nuGetServiceConnections
-
此组织外部源的服务连接凭据
string
。
可选。 NuGet 服务连接的逗号分隔列表 此组织或集合外部源的名称。 对于此组织或集合中的源,请将此保留为空;将自动使用生成的凭据。
forceReinstallCredentialProvider
-
重新安装凭据提供程序,即使已安装
boolean
。 默认值:false
。
可选。 将凭据提供程序重新安装到用户配置文件目录,即使它已安装也是如此。 如果凭据提供程序已安装在用户配置文件中,该任务将确定是否被任务提供的凭据提供程序覆盖。 这可能会升级凭据提供程序(或可能降级)。
任务控制选项
除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性。
输出变量
没有。
注解
使用此任务将 NuGet 工具配置为使用 Azure Artifacts 和其他 NuGet 存储库进行身份验证。 需要 NuGet >= 4.8.5385、dotnet >= 2.1.400 或 MSBuild >= 15.8.166.59604。
此版本的任务已弃用。 请改用 NuGetAuthenticate@1。 配置 NuGet 工具以使用 Azure Artifacts 和其他 NuGet 存储库进行身份验证。
要求
要求 | 说明 |
---|---|
管道类型 | YAML,经典版本,经典版本 |
运行时间 | 代理,DeploymentGroup |
需求 | 没有 |
功能 | 此任务不满足作业中后续任务的任何要求。 |
命令限制 | 任何 |
|
任何 |
代理版本 | 2.120.0 或更高版本 |
任务类别 | 封装件 |