Releases: actions/setup-dotnet
Updating @action/core, adding logic for processing the DOTNET_INSTALL_DIR environment variable.
Enable DOTNET_INSTALL_DIR environment variable
In scope of this release the DOTNET_INSTALL_DIR
environment variable was enabled to add the ability to change the installation directory for .NET SDK #329. The DOTNET_INSTALL_DIR
can be helpful when access to the default installation directory, for instance, on self-hosted runners, is denied.
Example of usage:
build:
runs-on: self-hosted
env:
DOTNET_INSTALL_DIR: "path/to/directory"
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
v3.0.0
This major release includes the following changes:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
dotnet-quality: 'preview'
- run: dotnet build <my project>
More in detail here.
- #241 The output variable
dotnet-version
which contains the installed by the action SDK version was added in #324:
- uses: actions/setup-dotnet@v3
id: cp310
with:
dotnet-version: '3.1.422'
- run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 3.1.422
More in detail here.
- The
dotnet-version
syntax was updated and now it allows to specify the prerelease version without usinginclude-prerelease
input. Theinclude-prerelease
input was cut out:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.0-preview.6'
More in detail here.
Breaking changes:
- Installation paths for Windows and Ubuntu images were changed to match the location of pre-installed SDKs. In more detail, read here.
Add support for Windows-arm
In scope of this release we add support for Windows-arm. Besides, we change getInput to getBooleanInput for include-prerelease.
Package updates, support for global json file in a subdirectory, installer scripts updates
This release includes the following PRs:
-
Adding support for the
global-json-file
input: #276
Example of usage:- uses: actions/setup-dotnet@v2 with: global-json-file: csharp/global.json - run: dotnet build <my project> working-directory: csharp
-
Update @zeit/ncc to @vercel/ncc: #290
-
Update vulnerable packages: #289
-
Improve documentation and update installer scripts to the latest version: #278
v2.0.0
In scope of this release we changed version of the runtime Node.js for the setup-dotnet action and updated package-lock.json file to v2.
Breaking Changes
With the update to Node 16 in #271 all scripts will now be run with Node 16 rather than Node 12.
Installer scripts updates
Update dotnet-install scripts to the latest versions: #270
Support for installation of multiple versions, warnings for deprecated versions
This release includes the following PRs:
- Adding support to install multiple .NET versions in single action invocation: #240
example:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
The latest installed .NET version is default, according .NET documentation.
- Adding the build warnings if the deprecated .NET versions are installed by action: #245