Problem with (named) embedded resources

eric-914eric-914 Posts: 46
edited January 13, 2015 2:45PM in SmartAssembly
This is similar to this posted question: https://forums.red-gate.com/viewtopic.php?t=16180

I've got a pair of embedded resources, both are Excel files, of which I differentiate by names:
:arrow: ReportTemplate.xlsx
:arrow: SummaryTemplate.xlsx

After obfuscation, their names become GUID's:
:arrow: "{37375161-a2ae-4090-a9da-df121cb31a76}"
:arrow: "{f0be9cdc-4e65-4736-b93d-46f7a1f59564}"

What would be the proper way of knowing which one is which after obfuscation?

Comments

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi Eric,

    Thanks for your post!

    When you enable resource compression and encryption, it actually merges all of your assembly's resources together into a single binary resource with a GUID name.

    Can I check--have you embedded any of your dependencies?

    I suspect that one of those GUIDs represents the resources (both xlsx files and any other resources combined), and the other is an embedded dependency.

    There isn't a way to distinguish which is which, and the GUIDs of the merged resources and embedded dependencies also change each time you build. I'm afraid that makes it impossible to use the resource compression and encryption feature if you're accessing a resource by name via a string like in that other post. :/

    Sorry as I know this isn't the answer you were hoping for! Please let me know if you have any other questions.

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.