Changing .NET application settings without recompiling

只谈情不闲聊 提交于 2019-12-05 07:45:47
Jesse C. Slicer

As far as I know how config files work, it has to be at the EXE level: appname.exe.config for services/apps and web.config for web sites/services.

See question/answers at Can someone provide a quick App.config/Web.config tutorial? for reference.

Can the exe that references the DLL manipulate the configuration settings in its own config?

You should try adding the settings to the exe.config as a test.

I think it might be that the .config.dll file that is actually being used is somewhere in C:\Users\Username\AppData (in Win7). Try searching for AssemblyName.dll in that folder, and enough looking around should find it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!