Skip to content

Error saving *.baml resources in project - corrupted filenames #2565

@greenozon

Description

@greenozon

Steps to reproduce

  1. Get an assembly that has .g.resources resource that has some *.baml underneath
  2. Save it as project (File -> Save code)
  3. The project saved without errors, but filenames of some saved resources are corrupted.

I"ve seen this issue already on a couple of assemblies, so I made a conclusion this is a generic issue.

Error message shown

Some of the saved resources were successfully decompiled and saved as .xaml files
but rest of items have got 2 errors

  1. it stayed as .baml (binary xaml) - was not decompiled for some reason
  2. these bamls had got currupted file names - some had got eaten file extention, some - missing full extension + end of filename itself

here is an example of the strange issue (picture of saved project out from ILSpy):

image

"+" means all fine - baml -> xaml done!
"?" - wrongly saved resources (instead of xaml we have got baml) and as you see - some names got corrupted (trimmed)

Details

ILSpy version 7.2.0.6772-preview3
.NET version 4.8.3928.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions