How do I include resx strings in an obfuscated assembly?

andrewtandrewt Posts: 2
edited August 8, 2016 1:21PM in SmartAssembly
I've just added some Spanish translations to a Winforms app using resx files. However, when I deploy the application, the translations don't work. I get the original English versions.

The application works if I deploy the non-obfuscated version.

The resource files are in the Winforms project---not in a separate assembly.

What's the trick to getting the localisation working in an obfuscated DLL?

Comments

  • Jessica RJessica R Posts: 1,227 Rose Gold 4
    Hi and thanks for your post!

    If you're calling on the resource file by its original name, you'll need to make sure to exclude it from obfuscation to make sure it can still be found at runtime. Can you kindly click on the Exclusions link button under the Obfuscation section, exclude the resource class from obfuscation, and then build and run the app again to see if that helps?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.