@@ -89,17 +89,16 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
89
89
New-Item - Path $InstallPath - ItemType Directory - Force | Out-Null ;
90
90
}
91
91
92
- # N.B. We explicitly install .NET Core 2.1 and 3.1 because .NET 5.0 SDK can build those TFMs
92
+ # N.B. We explicitly install .NET Core 3.1 because .NET 5.0 SDK can build those TFMs
93
93
# but will silently upgrade to a more recent runtime to execute tests if the desired runtime
94
94
# isn't available. For example, `dotnet run --framework netcoreapp3.0` will silently run
95
95
# on .NET 5.0 if .NET Core 3.0 and 3.1 aren't installed.
96
- # This solution is admittedly hacky as .NET Core 2.1 and 3.1 won't be installed if
96
+ # This solution is admittedly hacky as .NET Core 3.1 won't be installed if
97
97
# $DOTNET_VERSION matches $DOTNET_INSTALLED_VERSION, but it minimizes the changes required
98
98
# to install required dependencies on Evergreen.
99
99
if ($IsMacOS -or $IsLinux ) {
100
100
$ScriptPath = Join-Path $InstallPath ' dotnet-install.sh'
101
101
(New-Object System.Net.WebClient).DownloadFile($DotNetUnixInstallerUri , $ScriptPath );
102
- & bash $ScriptPath -- install-dir " $InstallPath " -- channel 2.1 -- no- path
103
102
& bash $ScriptPath -- install-dir " $InstallPath " -- channel 3.1 -- no- path
104
103
& bash $ScriptPath -- install-dir " $InstallPath " -- channel 5.0 -- no- path
105
104
& bash $ScriptPath -- install-dir " $InstallPath " -- channel 6.0 -- no- path
@@ -111,7 +110,6 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
111
110
else {
112
111
$ScriptPath = Join-Path $InstallPath ' dotnet-install.ps1'
113
112
(New-Object System.Net.WebClient).DownloadFile($DotNetInstallerUri , $ScriptPath );
114
- & $ScriptPath - Channel 2.1 - InstallDir $InstallPath ;
115
113
& $ScriptPath - Channel 3.1 - InstallDir $InstallPath ;
116
114
& $ScriptPath - Channel 5.0 - InstallDir $InstallPath ;
117
115
& $ScriptPath - Channel 6.0 - InstallDir $InstallPath ;
0 commit comments