Skip to content

Resource Explorer creating invalid image resource #9664

Open
@drewnoakes

Description

@drewnoakes

Originally posted by @chipplyman in #9474 (comment)

Resource Explorer in 17.3.7 creates an icon like so:

  <data name="oracle" type="System.Resources.ResXFileRef, System.Windows.Forms">
    <value>..\Resources\oracle.ico;System.Drawing.Icon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </data>

This works at first, populating an image in the Neutral Value column. However, on reloading the UI, the Neutral Value column changes to "Failed to load resource value: Type System.Drawing.Icon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 cannot be located."

Managed Resource Editor (legacy) inserts this instead:

  <data name="oracle" type="System.Resources.ResXFileRef, System.Windows.Forms">
    <value>..\Resources\oracle.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
  </data>

which populates a blank value in the "Neutral Value" column when viewed in Resource Explorer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions