Search code examples
asp.netembedded-resource

Where should I place resources.resx in a ASP.NET web application?


I'm a newbie with ASP.NET web applications. When I create an ASP.NET web app project, there's a file called resources.resx in the folder My Project. Working in my computer I can access this file and its content without any problem. But when I deploy the application I can't access this file. I've tried copying the file seperately, and the folder (My Project) seperately, with the file in it, but no luck. Is there a way to achieve this?

PS: I've read something about implicit localization and explicit localization but I'd like to know if it can be done this way.


Solution

  • It's embedded into your DLL when you build (compile). So you can't change it when it's deployed.

    If you want to see it in your DLL, you'll have to use a tool like Reflector, dotPeek, etc.

    You can read more on resources here, starting from the 'Compiling Resources into Assemblies' title (as you know how to use them by now).