See https://github.com/dotnet/sdk/pull/41106#issuecomment-2128154689 in which the fsharp repo failed to build but the exit code was 0.