dotnet/install 1.0.0

Install the .NET SDK

Parameters

Parameter
Required
Default
Description
dotnet-channel
Single .NET SDK channel/version to install, eg. 8.0
dotnet-channels
Array-style list of .NET SDK channels/versions to install in one call, eg. ["8.0", "9.0"]
dotnet-quality
Optional .NET SDK quality, eg. ga, preview, daily
global-json-file
Path to a global.json file used to determine the SDK version

README.md

Install one or more .NET SDK versions.

Install a single channel

tasks:
  - key: dotnet
    call: dotnet/install 1.0.0
    with:
      dotnet-channel: "8.0"

Install from global.json

tasks:
  - key: dotnet
    use: code
    call: dotnet/install 1.0.0
    with:
      global-json-file: global.json
    filter:
      - global.json

Install multiple channels in one call

tasks:
  - key: dotnet
    call: dotnet/install 1.0.0
    with:
      dotnet-channels: '["8.0", "9.0", "10.0"]'
      dotnet-quality: preview

When installing multiple SDKs, --skip-non-versioned-files will automatically be appended to the install script for subsequent installs, so they do not overwrite non-versioned files from earlier installs.

dotnet/install automatically configures PATH and DOTNET_ROOT for downstream tasks.