多个 App.Config 文件 [英] Multiple App.Config files

查看:44
本文介绍了多个 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天全站免登陆