多App.Config中的文件 [英] Multiple App.Config files

查看:127
本文介绍了多App.Config中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要分开我的app.config文件。比如我想ServiceModel部分移动到另一个配置文件在同一项目中。我该怎么做?

I want to separate my app.config file. For example I want to move ServiceModel part to another config file in the same project. How can I do that?

感谢。

推荐答案

您应该能有与 configSource空元素属性设置为第二个文件(相对于第一)。看到这里如何启用为自定义栏目

You should be able to have an empty element with the configSource attribute set to the second file (relative to the first). See here for how to enable it for custom sections.

这篇关于多App.Config中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆