$ErrorActionPreference = 'Stop' $repoRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '../../..')) $output = Join-Path $repoRoot 'test-results/typing-load/runtime' $compiler = Join-Path $env:WINDIR 'Microsoft.NET/Framework64/v4.0.30319/csc.exe' if (-not (Test-Path -LiteralPath $compiler)) { throw 'The installed .NET Framework x64 C# compiler is required.' } New-Item -ItemType Directory -Path $output -Force | Out-Null $target = Join-Path $output 'D3ROTypingRuntime.exe' & $compiler /nologo /target:winexe /platform:x64 /reference:System.Windows.Forms.dll "/out:$target" (Join-Path $PSScriptRoot 'Launch.cs') if ($LASTEXITCODE -ne 0) { throw "Runtime launcher compilation failed: $LASTEXITCODE" } Write-Output $target