Skip to content

Commit

Permalink
Fetch Windows Service current directory via AppDomain (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kralizek authored Mar 1, 2019
1 parent c856353 commit a051741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/NetCoreRabbitMqWindowsService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public override void ConfigureServices(StartupContext context, IServiceCollectio

public override void ConfigureAppConfiguration(IConfigurationBuilder configuration)
{
configuration.SetBasePath(Directory.GetCurrentDirectory());
configuration.SetBasePath(AppDomain.CurrentDomain.BaseDirectory);

configuration.AddJsonFile($"appsettings.json", true);

Expand Down

0 comments on commit a051741

Please sign in to comment.