title: Cannot use IOptions in console app .NET Core
body: <p>I have a console application where I am building up the configuration</p>
  <pre><code>IConfiguration config = new ConfigurationBuilder()
     .AddJsonFile(&quot;appsettings.json&quot;, true, true)
     .Build();
  
  var services = new ServiceCollection();
  services.AddOptions();
  services.Configure&lt;ResourceConfiguration&gt;(config.GetSection(&quot;ResourceConfiguration&quot;));
  </code></pre>
  <p>This doesnt work</p>
  <pre><code>  Error CS1503: Argument 2: cannot convert from 'Microsoft.Extensions.Configuration.IConfigurationSection' to 'System.Action&lt;ResourceConfiguration&gt;' (29, 55)
  </code></pre>
  <p>I have the following in my using (as well as my own namespaces)</p>
  <p>using Microsoft.Extensions.Configuration;
  using Microsoft.Extensions.DependencyInjection;
  using System;
  using System.IO;</p>
  <pre><code>IConfiguration config = new ConfigurationBuilder()
     .AddJsonFile(&quot;appsettings.json&quot;, true, true)
     .Build();
  </code></pre>
  <p>Returns IConfigurationRoot which may be the issue?</p>
  <p>What am I doing wrong?</p>
  <p>This is .NET Core 3.1</p>
  <p>Paul</p>