Skip to content

Commit

Permalink
Check and install .NET 5 SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
CXuesong committed Nov 21, 2020
1 parent 5adef57 commit c91dbab
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion WikiClientLibrary.Commons/CI/PrepEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ if ($IsLinux) {
CheckLastExitCode
checkDotNetSdkVersions -Channel 3
}
if (-not (checkDotNetSdkVersions -Channel 5 -ErrorAction Continue)) {
sudo apt install dotnet-sdk-5.0
CheckLastExitCode
checkDotNetSdkVersions -Channel 5
}
}
elseif ($IsWindows) {
# dotnet
Expand All @@ -64,7 +69,10 @@ elseif ($IsWindows) {
./DotNet-Install.ps1 -Version 3.1.10
checkDotNetSdkVersions -Channel 3
}

if (-not (checkDotNetSdkVersions -Channel 5 -ErrorAction Continue)) {
./DotNet-Install.ps1 -Version 5.0
checkDotNetSdkVersions -Channel 5
}
# SHFB
if ($SHFB) {
Write-Host "Downloading SHFB."
Expand Down

0 comments on commit c91dbab

Please sign in to comment.