Remove old .NET SDKs to make 'dotnet restore' work with the latest SDK in CI pipeline (#14746)

This commit is contained in:
Dongbo Wang authored and GitHub committed 2021-02-09 13:53:35 -08:00
1 parent 19ee77e520
commit d99afeed2d
1 file changed
+4
+4
View File
@@ -94,6 +94,10 @@ stages:
vmImage: macOS-latest
steps:
- pwsh: |
# Remove old .NET SDKs
if (Test-Path -Path $HOME/.dotnet) {
Remove-Item $HOME/.dotnet -Recurse -Force
}
Import-Module .\tools\ci.psm1
New-CodeCoverageAndTestPackage
displayName: CodeCoverage and Test Package