How Do I Use Resources From .Net Reflector

tadll122101tadll122101 Posts: 4
edited December 21, 2015 6:49PM in .NET Reflector Previous Versions
when i decompile something with .net reflector and it uses a resource file i transfer the code over, and drag in the .Resources file into my project but it always gets an error and says it could not find it or it was not embedded correctly. Is it even possible what i want to do? Please help, thanks PS, im using visual studio c# 2012

Comments

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

    Hm, you should be able to use the resource file. Can I just double check a few things:

    - If your assembly doesn't have the same name as the one the resource comes from, are you using the new fully qualified resource name in your call to ResourceManager(String, Assembly)? (You can load your assembly that's throwing the error into Reflector to check the correct resource name).
    - Is the resource file's build action indeed set to "embedded resource"?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.