Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

machine.config path

Tags:

c#

.net

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.

like image 956
ralph Avatar asked Oct 18 '08 00:10

ralph


1 Answers

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

like image 52
Gulzar Nazim Avatar answered Oct 20 '22 00:10

Gulzar Nazim