Skip to content

Commit

Permalink
UseSharedCompilation=false so the Roslyn server process exits without…
Browse files Browse the repository at this point in the history
… hanging the tests in CI.
  • Loading branch information
eerhardt committed Mar 28, 2023
1 parent ff65c2d commit fad1b0a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void EnsureAotCompatibility()
}

var process = new Process();
process.StartInfo = new ProcessStartInfo("dotnet", $"publish {testAppProject} --self-contained -nodereuse:false")
// set '-nodereuse:false /p:UseSharedCompilation=false' so the MSBuild and Roslyn server processes don't hang around, which may hang the test in CI
process.StartInfo = new ProcessStartInfo("dotnet", $"publish {testAppProject} --self-contained -nodereuse:false /p:UseSharedCompilation=false")
{
RedirectStandardOutput = true,
UseShellExecute = false,
Expand Down

0 comments on commit fad1b0a

Please sign in to comment.