Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ResXResourceWriter support for MemoryStream resource element #2895

Merged

Conversation

ElektroKill
Copy link
Contributor

Link to issue(s) this covers:
N/A

Problem

In newer runtime versions, MemoryStream is no longer a serializable type like it was in .NET Framework. This leads to an exception when exporting an assembly with resources using a resource element of the Stream type code.

Solution

  • Implement explicit support for the MemoryStream class instantiated by ResourcesFile.

In newer runtime versions, MemoryStream is no longer a serializable type like it was in .NET Framework. This means explicit support has to be implemented for it.
@greenozon
Copy link

I've recently hit such an assembly that uses MemoryStream
any plans to merge this PR please?

@dgrunwald dgrunwald merged commit 7eb1315 into icsharpcode:master Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants