title: Reference Web.Config file from another project in same solution C#
body: <p>I have a VC2010 C# Solution, with a number of projects in it. </p>
  
  <p>So for example, I have a web project, and I have a class library.</p>
  
  <p>In the web.config file, I have a key in the <code>&lt;appSettings&gt;</code> section, e.g. </p>
  
  <pre><code>&lt;add key="FileDirectory" value="G:\ftproot\sales" /&gt;
  </code></pre>
  
  <p>I have also added a key in the Web.Production.config file to reflect the file directory on the server. </p>
  
  <p>So when I reference it in my web project (It's MVC) - I do so like this:</p>
  
  <pre><code>var FTPPath = ConfigurationManager.AppSettings["FileDirectory"];
  </code></pre>
  
  <p>this works fine within my web project. However, I also need to reference this in the class library, which gets to my question - Is there a way to reference a key in the web.config file from another project, e.g. a class library, in the same solution??</p>
  
  <p>All help is appreciated.
  Thanks</p>