@@ -89,17 +89,16 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
8989 New-Item  - Path $InstallPath  - ItemType Directory - Force |  Out-Null ;
9090 }
9191
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
9393 #  but will silently upgrade to a more recent runtime to execute tests if the desired runtime
9494 #  isn't available. For example, `dotnet run --framework netcoreapp3.0` will silently run
9595 #  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
9797 #  $DOTNET_VERSION matches $DOTNET_INSTALLED_VERSION, but it minimizes the changes required
9898 #  to install required dependencies on Evergreen.
9999 if  ($IsMacOS  -or  $IsLinux ) {
100100 $ScriptPath  =  Join-Path  $InstallPath  ' dotnet-install.sh' 
101101 (New-Object  System.Net.WebClient).DownloadFile($DotNetUnixInstallerUri ,  $ScriptPath );
102-  &  bash $ScriptPath  -- install-dir  " $InstallPath "   -- channel 2.1  -- no- path
103102 &  bash $ScriptPath  -- install-dir  " $InstallPath "   -- channel 3.1  -- no- path
104103 &  bash $ScriptPath  -- install-dir  " $InstallPath "   -- channel 5.0  -- no- path
105104 &  bash $ScriptPath  -- install-dir  " $InstallPath "   -- channel 6.0  -- no- path
@@ -111,7 +110,6 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
111110 else  {
112111 $ScriptPath  =  Join-Path  $InstallPath  ' dotnet-install.ps1' 
113112 (New-Object  System.Net.WebClient).DownloadFile($DotNetInstallerUri ,  $ScriptPath );
114-  &  $ScriptPath  - Channel 2.1  - InstallDir $InstallPath ;
115113 &  $ScriptPath  - Channel 3.1  - InstallDir $InstallPath ;
116114 &  $ScriptPath  - Channel 5.0  - InstallDir $InstallPath ;
117115 &  $ScriptPath  - Channel 6.0  - InstallDir $InstallPath ;
0 commit comments