Needs more tests and fixes when https://github.com/dotnet/corefx/pull/31320 is merged
Needs more tests and fixes when dotnet/corefx#31320 is merged