开发者

Rename app.config to dllname.dll.config

开发者 https://www.devze.com 2023-01-26 10:59 出处:网络
I have a class library, which has an app.config and when built it put the app.config along with the dll in the output directory I have chosen.

I have a class library, which has an app.config and when built it put the app.config along with the dll in the output directory I have chosen.

I don't want it to be name app.config though, if I have another component that has it's own dll, I can see confusion happening.

I've been looking at another project, that doe开发者_StackOverflow中文版s exactly that, but I can't see why it outputs dllname.dll.config and mine always app.config.

Any ideas?

Thx


You probably have set the Copy to output directory setting of the app.config.

BUT: In a class library, an app.config is useless.

Note, that you can only have one config file per application. The configuration is being read (at execution time) from <executing assembly file name> + ".config".

0

精彩评论

暂无评论...
验证码 换一张
取 消