替代的XIncludeXInclude

2023-09-06 16:16:54 作者:梦绕魂牵

据我所知,是的XInclude 不支持.NET。

As far as I know there is no support for XInclude in .net.

我想利用同一种机制的分层组织XML配置文件。我的意思是我有一个顶层XML配置文件中引用特定的XML文件。我的配置是配置群集专用于一个特定的模块。

I'd like to leverage the same kind of mechanism for hierarchically organized XML configuration files. I mean I have a top-level XML config file referencing specific Xml files. My configuration is a cluster of configurations dedicated to one particular module.

我应该怎么办呢? (或者,也许我为什么要那么做。)

How should I do it ? (Or maybe why I shouldn't do it..)

推荐答案

首先,对于XInclude的一些第三方支持.NET的 XInclude.NET在codePLEX 。

First of all, there is some 3rd party support for XInclude in .NET XInclude.NET on Codeplex.

如果你问,因为配置文件,它们都有某种相同的功能集结在configSource属性,看到这的文章描述它。

If you are asking because of the configuration files, they have some sort of the same functionality build-in with configSource attribute, see this article describing it.

相关推荐