diff --git a/src/Castle.Core/Core/Logging/AbstractExtendedLoggerFactory.cs b/src/Castle.Core/Core/Logging/AbstractExtendedLoggerFactory.cs index 96a256fdb6..96189ddf98 100644 --- a/src/Castle.Core/Core/Logging/AbstractExtendedLoggerFactory.cs +++ b/src/Castle.Core/Core/Logging/AbstractExtendedLoggerFactory.cs @@ -101,11 +101,7 @@ protected static FileInfo GetConfigFile(string fileName) } else { -#if FEATURE_APPDOMAIN string baseDirectory = AppDomain.CurrentDomain.BaseDirectory; -#else - string baseDirectory = AppContext.BaseDirectory; -#endif result = new FileInfo(Path.Combine(baseDirectory, fileName)); } diff --git a/src/Castle.Core/Core/Logging/AbstractLoggerFactory.cs b/src/Castle.Core/Core/Logging/AbstractLoggerFactory.cs index 1e7494616c..66cf8d843f 100644 --- a/src/Castle.Core/Core/Logging/AbstractLoggerFactory.cs +++ b/src/Castle.Core/Core/Logging/AbstractLoggerFactory.cs @@ -60,11 +60,7 @@ protected static FileInfo GetConfigFile(string fileName) } else { -#if FEATURE_APPDOMAIN string baseDirectory = AppDomain.CurrentDomain.BaseDirectory; -#else - string baseDirectory = AppContext.BaseDirectory; -#endif result = new FileInfo(Path.Combine(baseDirectory, fileName)); } diff --git a/src/Castle.Core/Core/Resource/AbstractResource.cs b/src/Castle.Core/Core/Resource/AbstractResource.cs index 6edbefcb1f..3bc27c6ddb 100644 --- a/src/Castle.Core/Core/Resource/AbstractResource.cs +++ b/src/Castle.Core/Core/Resource/AbstractResource.cs @@ -20,11 +20,7 @@ namespace Castle.Core.Resource public abstract class AbstractResource : IResource { -#if FEATURE_APPDOMAIN protected static readonly string DefaultBasePath = AppDomain.CurrentDomain.BaseDirectory; -#else - protected static readonly string DefaultBasePath = AppContext.BaseDirectory; -#endif public virtual string FileBasePath {