tags:

views:

466

answers:

1

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.

+3  A: 

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

Gulzar