mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-05-28 09:48:18 +01:00
* Rename toolcache directory instead of moving to tmp
This further enhances time savings seen in #213, down from a few minutes to seconds.
* Remove branch constraint on workflows used for testing
This means you are going to be notified of CI issues quicker, especially if you have to wait for a confirmation before running the workflows on your PR.
* Support global.json's rollForward latest* variants
* Remove e2e-test's dependency on Microsoft.NET.Test.Sdk
The newer versions are net8.0/net462+ only, making older .NET sdks more annoying to test
* Revert "Remove e2e-test's dependency on Microsoft.NET.Test.Sdk"
This reverts commit 14839a662649cdea79ccecc3a7ce9a91386185b4.
* Don't run unsupported versions in global.json tests
* Revert "Remove branch constraint on workflows used for testing"
This reverts commit d9dae35030.
13 lines
416 B
PowerShell
13 lines
416 B
PowerShell
$dotnetPaths = @{
|
|
Linux = "/usr/share/dotnet"
|
|
macOS = "$env:HOME/.dotnet"
|
|
Windows = "$env:ProgramFiles\dotnet", "$env:LocalAppData\Microsoft\dotnet"
|
|
}
|
|
|
|
foreach ($srcPath in $dotnetPaths[$args[0]]) {
|
|
if (Test-Path $srcPath) {
|
|
$dstPath = "$srcPath-" + [IO.Path]::GetRandomFileName()
|
|
Write-Host "Moving $srcPath to $dstPath"
|
|
Move-Item -Path $srcPath -Destination $dstPath
|
|
}
|
|
} |