How can we help you today? How can we help you today?

How do I include resx strings in an obfuscated assembly?

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?
andrewt
0

Comments

1 comment

  • Jessica R
    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 R
    0

Add comment

Please sign in to leave a comment.