title: Get the App.Config of another Exe
body: <p>I have an exe with an <code>App.Config</code> file. Now I want to create a wrapper dll around the exe in order to consume some of the functionalities.</p>
  
  <p>The question is how can I access the app.config property in the exe from the wrapper dll?</p>
  
  <p>Maybe I should be a little bit more in my questions, I have the following app.config content with the exe:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="myKey" value="myValue"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The question is how to how to get "myValue" out from the wrapper dll?</p>
  
  <hr>
  
  <p>thanks for your solution.</p>
  
  <p>Actually my initial concept was to avoid XML file reading method or LINQ or whatever. My preferred solution was to use the <a href="http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx" rel="noreferrer">configuration manager libraries and the like</a>.</p>
  
  <p>I'll appreciate any help that uses the classes that are normally associated with accessing app.config properties. </p>