title: Accessing keys in appSettings in App.config across multiple projects in solution
body: <p>I've got a C# solution of about 7 different projects, each with their own class to access our database.  Right now I'm storing the database server, username, and password in the AppSettings of the app.config file for the startup project.</p>
  
  <p>App.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key ="dbServer" value="localhost"/&gt;
      &lt;add key ="dbUser" value ="admin"/&gt;
      &lt;add key ="dbPassword" value ="pw"/&gt;
    &lt;/appSettings&gt;
   ...
  &lt;/configuration&gt;
  </code></pre>
  
  <p>In the same startup project, I have created a class to query for these values:</p>
  
  <pre><code>public static class DBConfiguration
  {
      public static String getDBServer
      {
          get { return ConfigurationManager.AppSettings["dbServer"]; }
      }
  
      public static String getDBUser
      {
          get { return ConfigurationManager.AppSettings["dbUser"]; }
      }
  
      public static String getDBPassword
      {
          get { return ConfigurationManager.AppSettings["dbPassword"]; }
      }
  }
  </code></pre>
  
  <p>Right now when I am in my Unit Test project, I am trying to call <code>DBConfiguration.getDBServer</code>, <code>DBConfiguration.getDBUser</code>, etc. and it is returning null.  If I copy the same appSettings into the UT app.config, I get results.  I'm a little confused how that is working.  Since DBConfiguration is located in startup - shouldn't the calls to DBConfiguration refer to the app.config in startup as well?</p>
  
  <p>Also, I have already added the reference to <code>System.Configuration</code>.</p>