Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigureAppConfiguration is not taken into account #102

Open
IgorBuchelnikov opened this issue Feb 20, 2021 · 0 comments
Open

ConfigureAppConfiguration is not taken into account #102

IgorBuchelnikov opened this issue Feb 20, 2021 · 0 comments

Comments

@IgorBuchelnikov
Copy link

I use an alternative path to the configuration files. I set that path using HostBuilder.ConfigureAppConfiguration method:

WebHost.CreateDefaultBuilder(args)
  .UseStartup<Startup>()
  .ConfigureAppConfiguration((hostingContext, config) =>
  {
    config.SetBasePath(AlternativeConfigFilesPath);
  });

This works fine for appsettings.json and other configurations files.
loggerFactory.AddLog4Net(); throws an exception: Could not find file 'dllPath/log4net.config'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant