title: ASP.NET Core: Accessing appsettings from another project in solution
body: <p>In my <code>Startup.cs</code> class I have the following config build which initializes the db context:</p>
  
  <pre><code>var builder = new ConfigurationBuilder()
                      .SetBasePath(env.ContentRootPath)
                      .AddJsonFile("appsettings.json", true, true)
                      .AddJsonFile($"appsettings.{env.EnvironmentName}.json",true)
                      .AddEnvironmentVariables();
  
  Configuration = builder.Build();
  
  NHibernateUnitOfWork.Init(Configuration["ConnectionStrings:OracleConnection"]);
  </code></pre>
  
  <p><code>NHibernateUnitOfWork</code> is located in a different project as a class library project. I want to be able to inject (or somehow pass the settings) instead of using the <code>NHibernateUnitOfWork.Init</code> in my <code>Startup.cs</code> class.</p>
  
  <p>I can build the appsettings in my class library but trying to avoid that.</p>
  
  <p>What is a sane way to do this ?</p>