How do I use the .Net Core Options Pattern with envorinment variables that contain periods?

Viewed 54

I have a .Net Core console application setup with all the packages to use the Options pattern. Settings coming from my appsettings.json work just fine, but my envorinment variables contain period characters like:

App.Setting.Value1 = "someval" App.Setting.Val2 = "somethingelse"

I am trying to strongly type my settings using the Options pattern, but C# property names can't have period characters in them.

How do I configure during DI init time for this?

0 Answers
Related