How to add more configuration files to a web application? #57304
Answered
by
davidfowl
paulomorgado
asked this question in
Q&A
-
Is there an extension point to load more configuration file when using Is the only option to clear all configuration and load it all again? |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Aug 25, 2024
Replies: 1 comment 3 replies
-
For example: var builder = WebApplication.CreateBuilder();
builder.Configuration.AddJsonFile("whatever.json"); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can mutate the list of sources, here's an example of inserting it first.