Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
##Update
It's now easy to get any settings from the ConfigurationManager by calling the GetValueGetValue<type>(string key) extension method. You can also use Index(string key) to return a string. See this answer.
It's now easy to get any settings from the ConfigurationManager by calling the GetValue(string key) extension method. See this answer.
It's now easy to get any settings from the ConfigurationManager by calling the GetValue<type>(string key) extension method. You can also use Index(string key) to return a string. See this answer.
Update .Net 6
You must build a configuration in your main method, get the section and bind it to your model. No way around it.