diff --git a/.vsts-ci/mac.yml b/.vsts-ci/mac.yml index 55d29959336..5f487275bf2 100644 --- a/.vsts-ci/mac.yml +++ b/.vsts-ci/mac.yml @@ -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