Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
This would be great :)
Temporary workaround for anyone else coming accross this is to install the SDK yourself before your build. I take no credit for the following as it's just modified from an older issue.
... image: Visual Studio 2019 install: - ps: build/ci/appveyor/installDotnetCore3.1.ps1 ...
Powershell script to install the SDK:
# Install .NET Core SDK 3.1 onto the appveyor build server. # Workaround until they add it to the official image. # src: https://github.com/appveyor/ci/issues/2746#issuecomment-444292816 Write-Host "Installing .NET Core 3.1 SDK..." -ForegroundColor Cyan Write-Host "Downloading..." $exePath = "$env:TEMP\dotnet-sdk-3.1.100-win-x64.exe" (New-Object Net.WebClient).DownloadFile('https://download.visualstudio.microsoft.com/download/pr/639f7cfa-84f8-48e8-b6c9-82634314e28f/8eb04e1b5f34df0c840c1bffa363c101/dotnet-sdk-3.1.100-win-x64.exe', $exePath) Write-Host "Installing..." cmd /c start /wait "$exePath" /quiet /norestart del $exePath Write-Host "Installed" -ForegroundColor Green