DotNetCoreInstaller@0 - .NET Core SDK/runtime installer v0 task

Use this task to acquire a specific version of the .NET Core SDK from the internet or local cache and add it to the PATH.

Important

This task is deprecated. Use UseDotNet@2.

Syntax

# .NET Core SDK/runtime installer v0
# Acquire a specific version of the .NET Core SDK from the internet or local cache and add it to the PATH.
- task: DotNetCoreInstaller@0
  inputs:
    packageType: 'sdk' # 'runtime' | 'sdk'. Required. Package to install. Default: sdk.
    version: '1.0.4' # string. Required. Version. Default: 1.0.4.

Inputs

packageType - Package to install
string. Required. Allowed values: runtime, sdk (SDK (contains runtime)). Default value: sdk.

Specifies whether to install only Runtime or the full SDK.


version - Version
string. Required. Default value: 1.0.4.

Specifies the exact version of the .NET Core SDK or Runtime to install.

Find the value of version-sdk for installing the SDK, or version-runtime for installing Runtime from any releases in GitHub.

Note

The task won't work with new versions of .NET Core. Upgrade to @UseDotNet2 of the task so you can download the latest versions of .NET Core.


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.

Remarks

This task is deprecated. Use @UseDotNet2.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities Running this task satisfies the following demands for any subsequent tasks in the same job: DotNetCore
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Tool