로깅을 위해 엔터프라이즈 라이브러리를 사용하고 있습니다. 따라서 구성을 유지하려면 클라이언트의 app.config를 사용하고 있습니다. 요구 사항이 "EL 구성 및 UI 구성 분할"로 변경되었습니다. 나는 enterpriseLibrary.ConfigurationSource를 사용하여 그것을 수행했다. 구성을 app.config (UI의 경우) 및 EL.config (EL의 경우)로 분할하십시오.App.config 및 엔터프라이즈 라이브러리
이제이 EL> config의 단순한 존재가 사용자에게 보이지 않도록 app.cpnfig에서이 EL.config에 대한 참조를 숨기려고합니다.
의 App.config 코드 :
<enterpriseLibrary.ConfigurationSource selectedSource="EntLib Configuration Source">
<sources>
<add name="EntLib Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
filePath="C:\My.CommonServices.Logging\My.CommonServices.Logging\EL.config" />
</sources>
감사합니다. – Deimos