Hi
Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.
Thanks
Hi
Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.
Thanks
Have you tried ConfigurationManager
and OpenExeConfiguration(path)
? (in System.Configuration.dll)
Here's MSDN on OpenExeConfiguration.
And here's a shorter explanation of how to use it, including how to alter the file.