ralph
ralph

Reputation: 53

machine.config path

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

Answers (1)

Gulzar Nazim
Gulzar Nazim

Reputation: 52178

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

Upvotes: 7

Related Questions