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、经典版本、经典版本
运行平台 Agent、DeploymentGroup
需求
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任意
可设置变量 Any
代理版本 2.120.0 或更高版本
任务类别 程序包

请参阅