Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Dotfuscator causing exception when loading resource?

  • 24-06-2012 12:29PM
    #1
    Registered Users, Registered Users 2 Posts: 7,548 ✭✭✭


    My build works fine before using dotfuscator but after it gives an exception when my code tries to load the resource manager.

    I assume this is because the code to load the resources contains a string reference to my namespace which probably gets renamed by dotfuscator.

    Anyway to get around this?
    ResourceManager SqlQueries = new ResourceManager("MyNameSpace.Properties.Resources", Assembly.GetExecutingAssembly());
    

    Could not find any resources appropiate for the specified culture or the neutral culture. Make sure "MyNameSpace.Properties.Resources.resources" was correctly embedded or linked into assembly "MyAssembly" at compile time, or that all the satellie assemblies required are loadable and fully signed.


Comments

  • Registered Users, Registered Users 2 Posts: 7,548 ✭✭✭BrokenArrows


    Actually nevermind. I figured it out.

    In Dotfuscator i needed to select the "Rename" tab and select my resources to be excluded.

    Works after this.


Advertisement
Advertisement