How do I include resx strings in an obfuscated assembly?
andrewt
Posts: 2
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?
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
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?