title: Configuration for console apps .net Core 2.0
body: <p>In .net Core 1 we could do this:</p>
  
  <pre><code>IConfiguration config =  new ConfigurationBuilder()
                  .AddJsonFile("appsettings.json", true, true)
                  .Build();
  </code></pre>
  
  <p>And that gave use the Configuration object that we could then use in our console app.</p>
  
  <p>All examples for .net core 2.0 seem to be tailored to the new way Asp.Net core config is created.</p>
  
  <p>What is the way to create configurations for console apps?</p>
  
  <p>Update: this question is not related to Asp.net core. Please do not add asp.net core tags when editing.</p>