Resolving IConfiguration with environment-specific AppSettings.json (stackoverflow.com)stack
13 points by Tanveer Haresh in stackoverflow.com · 17mo ago · stack
I have two settings files appsettings.json and appsettings.Development.json. I am navigating between them by putting this code in Program.cs if (Debugger.IsAttached) { configBuilder .SetBasePath(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)) .AddJsonFile("appse…