title: Easiest way to access appsetting in MVC Core
body: <p>In our ASP.NET Core web app in <code>appsettings.json</code> we have</p>
  
  <pre><code>"V9": {
  "MainApp": {
    "Version": "9.07.32",
  </code></pre>
  
  <p>How do I access <code>Version</code> from a class? I want to do something like</p>
  
  <pre><code>string version = Configuration["V9:MainApp:Version"]
  </code></pre>
  
  <p>But I get <code>The name 'Configuration' does not exist in the current context</code> with no using statement suggested. I try using <code>ConfigurationManager</code> but <code>ConfigurationManager</code> is not available in <code>dnx-core</code></p>