Use XML includes or config references in app.config to include other config files' settings
问题 I have standard logging, NHibernate, etc. configuration blocks in my app.config and I'd like to extract them into a common XML file that can be included as a reference by all of my applications' app.config files. Is this possible? 回答1: Yes, you can use the configSource attribute of the configuration block. All configuration blocks have this attribute - although it isn't documented. See this article, all the way at the bottom, appendix B. I've also pasted the relevant section below: Appendix B