title: How can I set a relative path in App.Config?
body: <p>I'm working on WPF C# ans I'm using Visual Studio 2017.</p>
  
  <p>It is to set the file path of appSettings.
  I want to define a relative path in App.Config file. If I try with absolute path it works.</p>
  
  <p><strong>This work:</strong></p>
  
  <pre><code>&lt;appSettings file="C:\Users\jordan\AppData\Roaming\Test\appfile.config"&gt;
  </code></pre>
  
  <p>But if I try with relative path it does not work.</p>
  
  <p><strong>This does not work:</strong></p>
  
  <pre><code>&lt;appSettings file="${AppData}\Roaming\Test\appfile.config"&gt;
  
  &lt;appSettings file="~\AppData\Roaming\Test\appfile.config"&gt;
  
  &lt;appSettings file="~/AppData/Roaming/Test/appfile.config"&gt;
  
  etc...
  </code></pre>
  
  <p>Do you have an idea to set a relative path here? Or just why I can't do that?</p>
  
  <p>Thanks</p>