title: The best way to get a path to machine.config of a different .NET version
body: <p>Whats the best way to get a path to .net 2.0 machine.config file, if the application is running on .net 4.0?</p>
  
  <p>One way would be to do string manipulation and file system access to replace v4.0* with v2.0* in 
     <code>new ConfigurationFileMap().MachineConfigFilename;</code> and then pass it to <code>ConfigurationManager.OpenMappedMachineConfiguration(new ConfigurationFileMap(&lt;HERE&gt;))</code>. I will resort to this solution if nothing better is available.</p>