Skip to content

ResourceEditor should not serialize MemoryStreams using BinaryFormatter #5460

@ericstj

Description

@ericstj

Visual Studio Version:
16.3.0 Preview 2.0

Summary:
See the scenario here: https://github.com/dotnet/coreclr/issues/26472#issuecomment-528112760

Steps to Reproduce:

  1. Add a sound file to resource collection using the resources editor.

  2. Select Embedded in .resx for the Persistence option.

Expected Behavior:
Sound file is embedded as a "stream" primitive in the resources. When read at runtime caller will get a stream over top of the embedded resource's bytes.

Actual Behavior:
Resource editor is writing a binary formatted MemoryStream. MemoryStream is not serializable on all frameworks, so this leads to an exception when trying to deserialize the MemoryStream on .NETCore.

User Impact:
User cannot store a sounds embedded in ResX on .NETCore.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions