Repository navigation
Revert use of raw pointers in System.Text.Json (#78741)" - #84899
Conversation
Revert use of raw pointers for .NET Standard support. This particular raw pointer use does not work with .NET UWP toolchain. Also, convert uses of Enum.HasFlags to simple bit tests for better .NET Framework and .NET Standard support. Enum.HasFlags performs poorly (boxes) on .NET Framework and .NET Standard targets. Fixes dotnet#84895
|
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsRevert use of raw pointers for .NET Standard support. This particular raw pointer use does not work with .NET UWP toolchain. Also, convert uses of Enum.HasFlags to simple bit tests for better .NET Framework and .NET Standard support. Enum.HasFlags performs poorly (boxes) on .NET Framework and .NET Standard targets. Fixes #84895
|
|
Is there a way to try out OOB packages from an open PR? I'd like to double check that the Store can build fine with these changes to validate that this does in fact fix the issue, and that there aren't other places where this might've caused issues 🤔 Does the .NET CI push NuGet packages from PRs into some preview feed maybe, or something like that? EDIT: I guess it's not needed, we know for sure those two methods were an issue so might as well fix them and then I can double check after that. If anything else does pop up (hopefully not), I can just open a separate issue to track that 🙂 |
|
@Sergio0694 It would be great if you can validate the fix. PRs do not publish packages to any feeds. Can you build it locally? I think it is the easiest way to do it. |
|
Yup I can try that! Will report back 👍 |
|
It seems to work!! 🎉 For future reference, I created a package like this: The package was then created in |

Revert use of raw pointers for .NET Standard support. This particular raw pointer use does not work with .NET UWP toolchain.
Also, convert uses of Enum.HasFlags to simple bit tests for better .NET Framework and .NET Standard support. Enum.HasFlags performs poorly (boxes) on .NET Framework and .NET Standard targets.
Fixes #84895