This is a known bug in .NET 9 which was fixed by this pull request. According to the current status it is only part of the .NET 10.0 Preview 2 release.