views:

36

answers:

2

I'm building a plugin assembly and I would like to provide an accompanying config file.

Deployed assembly is probably copied somewhere, don't know where, and would like to know where does the ConfigurationManager looks for a .config file. I do not wish to load .config from an explicit location, just put it where it is being looked for.

A: 

you can use procmon from sysinternals to monitor file activity and see where it tries to open the file.

Sam Holder
A: 

It is pretty simple: it looks in the directory where the .exe is stored for an appname.exe.config file. That makes it unsuitable for your intended use.

Hans Passant
I do not have a an exe, it's a plugin assembly used by another process. Putting a config beside the assembly does not help.But if I understood you correctly it won't be loaded, unless I load it explicitly. Correct?
WooYek
That is correct.
Hans Passant