Skip to content

Commit

Permalink
Making sure the correct dir is selected, close #906
Browse files Browse the repository at this point in the history
  • Loading branch information
mregni committed Aug 17, 2019
1 parent a26fc3a commit b48da40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EmbyStat.Web/EmbyStat.Web.csproj
Expand Up @@ -162,7 +162,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Update="nlog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion EmbyStat.Web/Program.cs
Expand Up @@ -84,7 +84,7 @@ private static Logger SetupLogging()
File.Move(source, destination);
}

var logger = NLogBuilder.ConfigureNLog(Path.Combine("config", "nlog.config")).GetCurrentClassLogger();
var logger = NLogBuilder.ConfigureNLog(Path.Combine(Directory.GetCurrentDirectory(), "config", "nlog.config")).GetCurrentClassLogger();
return logger;
}

Expand Down

0 comments on commit b48da40

Please sign in to comment.