diff --git a/build.ps1 b/build.ps1 index 3ea0b34c1..13b93762f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -23,6 +23,13 @@ $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 $env:DOTNET_NOLOGO = 1 $env:DOTNET_ROLL_FORWARD = "Major" +# Install by channel or version. +# .NET 11+ packages are tar.gz. Windows tar refuses to extract when the +# destination is reached through a symlink (Windows Runner's C:\Runner: +# "too many symbolic link levels"). This switch makes the install script +# download the zip and extract it with System.IO.Compression. +$env:DOTNET_INSTALL_SKIP_TAR = "1" + ########################################################################### # EXECUTION ########################################################################### diff --git a/src/Fallout.Cli/templates/build.ps1 b/src/Fallout.Cli/templates/build.ps1 index f66198b3e..cb87a3b5a 100644 --- a/src/Fallout.Cli/templates/build.ps1 +++ b/src/Fallout.Cli/templates/build.ps1 @@ -22,6 +22,13 @@ $DotNetChannel = "STS" $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 $env:DOTNET_NOLOGO = 1 +# Install by channel or version. +# .NET 11+ packages are tar.gz. Windows tar refuses to extract when the +# destination is reached through a symlink (Windows Runner's C:\Runner: +# "too many symbolic link levels"). This switch makes the install script +# download the zip and extract it with System.IO.Compression. +$env:DOTNET_INSTALL_SKIP_TAR = "1" + ########################################################################### # EXECUTION ###########################################################################