Follow-up on https://github.com/dotnet/sdk/pull/34279, see discussion in https://github.com/dotnet/runtime/pull/92211