machine.config path

.net, c#

Solution

System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile should give you that value..

Problem

How do I get the path to the machine.config from a .Net application? It should automatically get the correct path based on the .Net version of the app.

Original source