This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle binary formatted payloads with ResX mangled generic type names (…
…#42102) (#42209) * Handle binary formatted payloads with ResX mangled generic type names ResXSerializationBinder on desktop corrupted type names for generic parameters in the binary formatted payload. It would also undo this in the reader, but we don't benefit from that in .NETCore since we don't deserialize during build: we just copy the preserialized payload into the resources. To handle this, we use a serialization binder to un-mangle the type names in a way similar to ResXSerializationBinder. We do it slightly differently so that we only do it when needed, since relying on the binder to resolve the type bypasses the type cache in BinaryFormatter. * Respond to feedback. release/3.1 - regenerate TestData.resources
- Loading branch information
Showing
5 changed files
with
194 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.