This project is read-only.

Module with custom config file

Topics: Writing modules
Apr 16, 2014 at 11:29 AM

We have a situation where our module is using 3rd party library. That library assembly has its own *.config.

What tricks is needed to get this extra config file to be copied into ~/App_Data/Dependencies folder as that 3rd party assembly is looking for it from that folder ? It doesnt get copied from modules bin-folder as all referenced *.dlls are.

Apr 16, 2014 at 12:24 PM
If you mean just for your own site, I would say copy it manually.

If you mean in a modular way, a lot more would be required : what if 2 modules have such a custom config file for example?
Apr 18, 2014 at 2:01 PM
I ended up using old school gimmick and get it into right place as embedded resource and extract it to dependencies folder when module is enabled.