Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Resources (resx) Inside a ClassLibrary, that can be changed without recompiling

I need to make a ClassLibrary, to contain different Resource Files (resx). This needs to be done, so I can reuse these resources on multiple projects.

After reading for quite a while on how to achieve this, I'm still nowhere near close to an answer.

Note that i need to achieve this in a way that I don't have to recompile the proyect if I want to change a value

Is there a simple way to achieve this that I'm missing?

like image 910
Gaston Claret Avatar asked Nov 03 '22 03:11

Gaston Claret


1 Answers

Hate to be the bearer of bad news, but I'm afraid you're trying to use RESX files for something other than what they're designed to do. RESX files are compiled into .resources files, which are then embedded into the assembly during the build. In other words, if you don't recompile, you won't see any changes that are made to the resx file reflected in the module.

like image 160
Andy Hopper Avatar answered Nov 08 '22 10:11

Andy Hopper