title: Is it possible to switch application configuration file at runtime for .NET application?
body: <p>By default, .NET application's configuration file is named after "exe file name".config. I'm wondering whether it is possible to have one application's configuration specified dynamically.</p>
  
  <p>For example, the built application is "foo.exe". At runtime, the config file is "foo.exe.config". Is it possible to have it accept command line arguments to use other config file. So, the application can use other configuration like below.</p>
  
  <blockquote>
    <p>foo.exe /config:bar.config</p>
  </blockquote>
  
  <p>bar.config is used as config file insteand of foo.exe.config.</p>