title: Get the path to .NET application settings programatically
body: <p>Windows puts .NET app's settings on incredibly obscure paths - our application has them on path:</p>
  
  <pre><code>C:\Users\USERNAME\AppData\Local\COMPANY_NAME\EXECUTABLE_NAME_Url_yhgjvoqwe3bnlu21k1ccbg2qdgwexzsm\1.0.0.0\user.config
  </code></pre>
  
  <p>I often need to migrate the settings on another machine. Writing an import/export feature would be much more work than just copying the file.</p>
  
  <p>How can I get the path to <code>user.config</code> from within the code of a .NET application? Eg.:</p>
  
  <pre><code> string settingsPath = Application.GetSettingsPath();
  </code></pre>