【发布时间】:2011-09-13 23:29:26
【问题描述】:
我想设置企业库(3.1)路径以使用类似的环境变量
<add name="ExternalEntLibConfig" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
filePath="%CONFIG_PATH%\SharedEntLib.Config"/>
我可以使用 expandvariables 替换 %CONFIG_PATH%
SpecialFolder.ExpandVariables(@"%CONFIG_PATH%");
我的问题是:
- 是否有任何我缺少的“神奇”字符可以用实际值替换 %CONFIG_PATH%?
- 在加载企业库时我需要重写任何方法吗?
谢谢,皮尼。
【问题讨论】:
标签: c# app-config enterprise-library