I cannot seem to figure out how to read values from the appsettings.json in my _Layout.chtml file.
Is it not just available, something like this? @Configuration["ApplicationInsights:InstrumentationKey"]
I created a new MVC project using razor pages.
fyi, i'm an mvc newbee - code samples help a lot.
question from:https://stackoverflow.com/questions/48979294/how-to-read-appsettings-json-in-my-layout-chtml