Common app.config between applications
<p>I have a need for a common config file shared by three applications</p>

<p>I solved it by adding in a file in appSettings </p>

<pre><code>&lt;appSettings file="ait.config"&gt;
    &lt;!--&lt;add key="Culture" value="zh-CN" /&gt;--&gt;
    &lt;add key="Culture" value=""/&gt;
    &lt;add key="ClientSettingsProvider.ServiceUri" value=""/&gt;
&lt;/appSettings&gt;
</code></pre>

<p>In the ait.config i store some common values like</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;appSettings&gt;
    &lt;add key="Username" value="Klabberius" /&gt;
&lt;/appSettings&gt;
</code></pre>

<p>If i try to read it like</p>

<pre><code> string stvalue = ConfigurationManager.AppSettings["Username"];
</code></pre>

<p>It works fine , but if i try to write a value like</p>

<pre><code>System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

config.AppSettings.Settings["Username"].Value = userName;
config.Save(ConfigurationSaveMode.Modified);
ConfigurationManager.RefreshSection("appSettings");
</code></pre>

<p>Instead of writing to the common file ait.config it add the key username to the standard app.config in each seperate application, anyone knows how to solve this.</p>
