Problem
build.ps1:80-86,90 uses [System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform(...) for platform detection. PowerShell ships $IsWindows, $IsLinux, $IsMacOS natively.
Fix
Replace the .NET reflection with $IsWindows / $IsLinux / $IsMacOS or $env:OS.
Reported by Kilo Code (automated audit tool), not a human reviewer.
Problem
build.ps1:80-86,90uses[System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform(...)for platform detection. PowerShell ships$IsWindows,$IsLinux,$IsMacOSnatively.Fix
Replace the .NET reflection with
$IsWindows/$IsLinux/$IsMacOSor$env:OS.Reported by Kilo Code (automated audit tool), not a human reviewer.