Skip to content

Commit

Permalink
Undo changes to installed net core frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Jul 25, 2022
1 parent 18404db commit cb169c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/common.lib.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ function Install-DotNetCli
$dotnetInstallPath = Join-Path $env:TP_TOOLS_DIR "dotnet"
New-Item -ItemType directory -Path $dotnetInstallPath -Force | Out-Null

& $dotnetInstallScript -InstallDir "$dotnetInstallPath" -Runtime 'dotnet' -Channel '2.1' -Architecture x64 -NoPath -Version '2.1.30'
& $dotnetInstallScript -InstallDir "$dotnetInstallPath" -Runtime 'dotnet' -Channel '3.1' -Architecture x64 -NoPath -Version '3.1.24'
& $dotnetInstallScript -InstallDir "$dotnetInstallPath" -Runtime 'dotnet' -Channel '5.0' -Architecture x64 -NoPath -Version '5.0.16'
& $dotnetInstallScript -InstallDir "$dotnetInstallPath" -Runtime 'dotnet' -Channel '6.0' -Architecture x64 -NoPath -Version '6.0.4'
& $dotnetInstallScript -InstallDir "$dotnetInstallPath" -Channel '7.0' -Architecture x64 -NoPath -Version $env:DOTNET_CLI_VERSION

& $dotnetInstallScript -InstallDir "${dotnetInstallPath}_x86" -Runtime 'dotnet' -Channel '2.1' -Architecture x86 -NoPath -Version '2.1.30'
& $dotnetInstallScript -InstallDir "${dotnetInstallPath}_x86" -Runtime 'dotnet' -Channel '3.1' -Architecture x86 -NoPath -Version '3.1.24'
& $dotnetInstallScript -InstallDir "${dotnetInstallPath}_x86" -Runtime 'dotnet' -Channel '5.0' -Architecture x86 -NoPath -Version '5.0.16'
& $dotnetInstallScript -InstallDir "${dotnetInstallPath}_x86" -Runtime 'dotnet' -Channel '6.0' -Architecture x86 -NoPath -Version '6.0.4'
Expand Down Expand Up @@ -388,7 +390,7 @@ function Start-InlineProcess {
}

Add-Type -TypeDefinition @"
public static class Hash {
public static class Hash {
public static string GetHash(string value)
{
unchecked
Expand All @@ -412,6 +414,6 @@ function Get-Hash {
[string]$Value
)

# PowerShell does not have unchecked keyword, so we can't do unchecked math easily.
# PowerShell does not have unchecked keyword, so we can't do unchecked math easily.
[Hash]::GetHash($Value)
}

0 comments on commit cb169c1

Please sign in to comment.