Skip to content

Managed Resources Editor (Legacy) corrupts Resources.resx and Resources.Designer.cs file #9532

@th-joerger

Description

@th-joerger

Visual Studio Version

17.12.0 Preview 1.0

Summary

Managed Resources Editor (Legacy) corrupts Resources.resx and Resources.Designer.cs file.

Steps to Reproduce

  1. Open Resources.resx with Managed Resources Editor (Legacy).
  2. Perform any change on a file resource and save.
  3. In Resources.resx, reference to utf-8 are removed. In Resources.Designer.cs, auto-generated comments are borked as well.
<data name="LabDescription" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resources\LabDescription.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=c44a5c334534e089;utf-8</value>
+    <value>..\Resources\LabDescription.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=c44a5c334534e089</value>
</data>

Expected Behavior

Parse file correctly and don't mess up when saving.

Actual Behavior

Parse file incorrectly and mess up saving.

User Impact

Huge file Resources.Designer.cs corrupted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature-Resource-DesignerDEPRECATED The legacy resource file (RESX) editor.Triage-InvestigateReviewed and investigation needed by dev team

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions