79680899

Date: 2025-06-26 17:04:11
Score: 0.5
Natty:
Report link

This is an old question but it pops up on Google as a top result so I'll share another answer. It has gotten simpler in newer versions of .NET. With the new hosting templates in .NET 6 you can simply use:

builder.Configuration.AddJsonFile("your/path/to/appsettings.json", false);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Christopher Rhoads