@@ -204,7 +204,7 @@ let ``Synthesized name snapshot preserves mixed bucket allocation order`` () =
204204 let decoded = deserializeSynthesizedNameSnapshot blob
205205
206206 match Map.tryFind " endpoints" decoded with
207- | Some actualNames -> Assert.Equal< string>( expectedNames, actualNames)
207+ | Some actualNames -> Assert.Equal< string[] >( expectedNames, actualNames)
208208 | None -> failwith " expected endpoints bucket to round-trip"
209209
210210// -----------------------------------------------------------------------
@@ -324,10 +324,15 @@ let private buildCSharpScratchPdb () =
324324 )
325325
326326 let psi = System.Diagnostics.ProcessStartInfo()
327- psi.FileName <- Path.Combine(__ SOURCE_ DIRECTORY__, " .." , " .." , " .." , " .dotnet" , " dotnet" )
327+ // Resolve the dotnet host like the rest of the test framework: repo-local .dotnet
328+ // first, PATH fallback otherwise (the hand-rolled path misses on some CI images).
329+ psi.FileName <- TestFramework.initialConfig.DotNetExe
328330 // ProcessStartInfo.ArgumentList does not exist on net472, so build the quoted argument
329331 // string by hand (projPath is the only argument that can contain spaces).
330332 psi.Arguments <- $" build \" {projPath}\" -c Debug -p:DebugType=portable -v m"
333+ // net472 defaults UseShellExecute to true, which is incompatible with stream
334+ // redirection; set it explicitly so the Desktop test legs can start the process.
335+ psi.UseShellExecute <- false
331336 psi.RedirectStandardOutput <- true
332337 psi.RedirectStandardError <- true
333338 psi.WorkingDirectory <- workDir
@@ -680,7 +685,7 @@ let ``Synthetic module CustomDebugInformation row round-trips synthesized snapsh
680685 match Map.tryFind " endpoints" snapshot with
681686 | Some names ->
682687 let struct ( _ , expectedNames ) = List.head expected
683- Assert.Equal< string>( expectedNames, names)
688+ Assert.Equal< string[] >( expectedNames, names)
684689 | None -> failwith " expected endpoints bucket"
685690 | None -> failwith " expected recorded synthesized-name snapshot"
686691
@@ -735,7 +740,7 @@ let ``Baseline reader gives recorded synthesized snapshot precedence over recons
735740 Assert.Equal( SynthesizedNameSnapshotSource.Recorded, baseline.SynthesizedNameSnapshotSource)
736741
737742 match Map.tryFind " endpoints" baseline.SynthesizedNameSnapshot with
738- | Some names -> Assert.Equal< string>( recordedNames, names)
743+ | Some names -> Assert.Equal< string[] >( recordedNames, names)
739744 | None -> failwith " expected recorded endpoints bucket"
740745
741746[<Fact>]
0 commit comments