title: How can I read the appsettings.json in a .Net 6 console application?
body: <p>I try to create a .Net 6 Console Application but having troubles reading my appsettings.json file. In a web application I could use this...</p>
  <pre><code>var builder = WebApplication.CreateBuilder(args);
  </code></pre>
  <p>But what would I use in a console application? I get this error when trying to add it to program.cs. <code>&quot;The name 'WebApplication' does not exist in the current context&quot;</code></p>