Linked by Thom Holwerda on Sun 11th Jan 2009 10:54 UTC, submitted by Hiev
Thread beginning with comment 343154
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[8]: A development platform should be agnostic in des
by segedunum on Tue 13th Jan 2009 10:38
in reply to "RE[7]: A development platform should be agnostic in des"
FYI, since version 2.0, .NET supports per-user application settings. Those are not stored in app.config, but in a user.config file in the user's app data dir.
Same difference, with all the same problems. Once again, it is a config file. There is App.config for application-wide settings and User.config which is effectively an App.config for each user. You haven't been reading.
RE[9]: A development platform should be agnostic in des
by lsls on Tue 13th Jan 2009 14:04
in reply to "RE[8]: A development platform should be agnostic in des"
Same difference, with all the same problems. Once again, it is a config file. There is App.config for application-wide settings and User.config which is effectively an App.config for each user. You haven't been reading.
I've been reading. You haven't. The class System.Configuration.ApplicationSettingsBase and related ones are designed for being a read/write store of settings. Hell, even Visual Studio provides a designer which allows defining app settings, and generates a class for getting and setting them. There is also the class SettingsProvider which you can subclass to provide your own settings store. The default implementation is LocalFileSettingsProvider, which stores settings in .config files, but you can write your own store based on a database if you want.




Member since:
2006-11-13
For quite a while Microsoft hadn't even thought of application settings for particular users!
"
FYI, since version 2.0, .NET supports per-user application settings. Those are not stored in app.config, but in a user.config file in the user's app data dir.