Redaguoti

Bendrinti naudojant


DownloadGitHubNugetPackage@1 - Download GitHub Nuget Packages v1 task

Use this task to restore your NuGet packages using dotnet CLI.

Syntax

# Download GitHub Nuget Packages v1
# Restore your nuget packages using dotnet CLI.
- task: DownloadGitHubNugetPackage@1
  inputs:
    packageName: # string. Required. Package Name. 
    version: # string. Required. Package Version. 
  # Feeds and authentication
    #externalFeedCredentials: # string. Alias: externalEndpoints. Required when selectOrConfig = config && command = restore. Credentials for feed from GitHub. 
  # Advanced
    #restoreDirectory: # string. Alias: packagesDirectory. Optional. Use when command = restore. Destination directory.

Inputs

packageName - Package Name
string. Required.

Specifies the name of the package to download from GitHub.


version - Package Version
string. Required.

Specifies the version of the package to download from GitHub.


externalFeedCredentials - Credentials for feed from GitHub
Input alias: externalEndpoints. string. Required when selectOrConfig = config && command = restore.

Specifies the credentials to use for external registry from GitHub.


restoreDirectory - Destination directory
Input alias: packagesDirectory. string. Optional. Use when command = restore.

Specifies the folder where packages are installed. If no folder is specified, packages are restored into the default system working directory.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.144.0 or greater
Task category Build
Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.115.0 or greater
Task category Build