开发者

Rename app.config to dllname.dll.config

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜