Fix SDK tests for release build (#17678)

This commit is contained in:
Patrick Meinecke authored and GitHub committed 2022-07-13 14:21:27 -07:00
1 parent 417d9315f9
commit bcafe74c17
1 file changed
+4
@@ -122,6 +122,10 @@ jobs:
Get-Content ./NuGet.Config
# Add workaround to unblock xUnit testing see issue: https://github.com/dotnet/sdk/issues/26462
$dotnetPath = if ($IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
$env:DOTNET_ROOT = $dotnetPath
dotnet --info
dotnet restore
dotnet test /property:RELEASE_VERSION=$releaseVersion --test-adapter-path:. "--logger:xunit;LogFilePath=$(System.DefaultWorkingDirectory)/test-hosting.xml"