I've been looking through Google for a good while trying to find an answer to my question... How do I make my application save and load it's settings from a single file (AppName.exe.config, ex. "Vanilla.exe.config") that is located in the same folder as
the executable?
-
-
The System.Configuration Namespace holds your answer.
Try this http://msdn.microsoft.com/en-us/library/aa730869(VS.80).aspx">http://msdn.microsoft.com/en-us/library/aa730869(VS.80).aspx
or this http://www.codeplex.com/csd or this http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx -
also if you have exotic settings, you may want to manually serialize your config (somewhere in AppData directory), instead of messing with custom sections....
-
If your going to do that, this is a good guide as to where to put it http://blogs.msdn.com/cjacks/archive/2008/02/05/where-should-i-write-program-data-instead-of-program-files.aspxIon Todirel said:also if you have exotic settings, you may want to manually serialize your config (somewhere in AppData directory), instead of messing with custom sections....
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.