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.
System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile should give you that value..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With