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.
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
dotnet-quality: 'preview'
- run: dotnet build <my project>
</code></pre>
<p>More in detail <a href="https://github.com/actions/setup-dotnet#using-the-dotnet-quality-input">here</a>.</p>
<ul>
<li><a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/241">#241</a> The output variable <code>dotnet-version</code> which contains the installed by the action SDK version was added in <a href="https://github-redirect.dependabot.com/actions/setup-dotnet/pull/324">#324</a>:</li>
</ul>
<pre lang="yaml"><code> - uses: actions/setup-dotnet@v3
id: cp310
with:
dotnet-version: '3.1.422'
- run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 3.1.422
</code></pre>
<p>More in detail <a href="https://github.com/actions/setup-dotnet/tree/main#dotnet-version">here</a>.</p>
<ul>
<li>The <code>dotnet-version</code> syntax was updated and now it allows to specify the prerelease version without using <code>include-prerelease</code> input. The <code>include-prerelease</code> input was cut out:</li>
</ul>
<pre lang="yaml"><code> - uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.0-preview.6'
</code></pre>
<p>More in detail <a href="https://github.com/actions/setup-dotnet#supported-version-syntax">here</a>.</p>
<ul>
<li><a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/251">#251</a> The problem with out of support .NET version warnings was solved in <a href="https://github-redirect.dependabot.com/actions/setup-dotnet/pull/315">#315</a>.</li>
</ul>
<p><strong>Breaking changes</strong>:</p>
<ul>
<li>Installation paths for Windows and Ubuntu images were changed to match the location of pre-installed SDKs. In more detail, read <a href="https://github.com/actions/setup-dotnet/blob/main/docs/adrs/v3-setup-dotnet.md#breaking-changes">here</a>.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/setup-dotnet/commit/45c9f236cf9a0c09d11298348f6ed06bd81914c0"><code>45c9f23</code></a> Enable ability to change .NET SDK installation directory by `DOTNET_INSTALL_D...</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/c7e7147fd3e41056e75a761416c06f5fa781b5fb"><code>c7e7147</code></a> Add ability to write resolved version of SDK into the output variable (<a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/324">#324</a>)</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/0705ef0281736c0ca177266c8d04eb08f72072de"><code>0705ef0</code></a> Implement proposal stated in ADR for setup-dotnet v3 and functionality from f...</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/a351d9ea84bc76ec7508debf02a39d88f8b6c0c0"><code>a351d9e</code></a> Add support for Windows-arm (<a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/320">#320</a>)</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/857c316a9d1712bfa2c7083c4183dcbe273a1d6c"><code>857c316</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/313">#313</a> from panticmilos/vmpantic/update-version-package-json</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/bba8299c353791dc1a458157c32af1cfd0c5a933"><code>bba8299</code></a> npm run update-installers</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/fd4e15fa4455526558c445d3387258a53dc214fe"><code>fd4e15f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/291">#291</a> from vsafonkin/v-vsafonkin/v3-adr</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/95e7de77d131672c2cfcc56315caa7ae236b9498"><code>95e7de7</code></a> Set status accepted</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/52c3199a78d0d1eb612d2a2afdcc48f89b6f9874"><code>52c3199</code></a> ADR change (<a href="https://github-redirect.dependabot.com/actions/setup-dotnet/issues/1">#1</a>)</li>
<li><a href="https://github.com/actions/setup-dotnet/commit/2d9def70671f9768f130a1750b8e76d056968671"><code>2d9def7</code></a> Rework</li>
<li>Additional commits viewable in <a href="https://github.com/actions/setup-dotnet/compare/v2.1.0...v3.0.1">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/setup-dotnet&package-manager=github_actions&previous-version=2.1.0&new-version=3.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps actions/setup-dotnet from 2.1.0 to 3.0.1.
Release notes
Sourced from actions/setup-dotnet's releases.