Reputation: 53
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.
Upvotes: 5
Views: 2798
Reputation: 52178
System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile should give you that value..
Upvotes: 7