Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Added an additional config file candidate #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/NLog/LogFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,9 @@ private static IEnumerable<string> GetCandidateFileNames()
yield return Path.ChangeExtension(cf, ".nlog");
}

string configurationFileName = Path.GetFileName(cf);
yield return Path.Combine(AppDomain.CurrentDomain.SetupInformation.PrivateBinPath, "NLog.config");

// get path to NLog.dll.nlog only if the assembly is not in the GAC
var nlogAssembly = typeof(LogFactory).Assembly;
if (!nlogAssembly.GlobalAssemblyCache)
Expand Down