【发布时间】:2013-12-07 06:35:30
【问题描述】:
Slow Cheater 的所有示例似乎都集中在配置文件的应用设置部分。
我很想知道是否可以通过自定义配置设置实现类似的输出。
例如
<MyConfigSection username="debug" password="d3bUg" />
会变成
<MyConfigSection username="release" password="re1eas3" />
编辑
我发现xdt:Transform="Replace" 可以在这个例子中使用。但是,如果我有其他没有改变的属性,我将如何在不从配置中丢失它们的情况下实现呢?
例如
<MyConfigSection username="debug" password="d3bUg" apiKey="12345" />
<MyConfigSection username="release" password="re1eas3" apiKey="12345" />
如果我用过
<MyConfigSection username="release" password="re1eas3" xdt:Transform="Replace" />
那么 apiKey 就会消失
【问题讨论】:
标签: .net web-config app-config slowcheetah