Beta 2 COnfiguration changes
Can someone explain this to me?
There's a whole new thing about ApplicationSettings and ConfigurationSettings has been (gratuitously) replaced by ConfigurationManager.
All I want is to replace the appSettings I used to use with something simple. I seem to have a proliferation of applicationSettings files and no clear roadmap!
Iain
IainDowns wrote: |
| Can someone explain this to me? There's a whole new thing about ApplicationSettings and ConfigurationSettings has been (gratuitously) replaced by ConfigurationManager. All I want is to replace the appSettings I used to use with something simple. I seem to have a proliferation of applicationSettings files and no clear roadmap! Iain |
|
Iain,
I believe that ConfigurationSettings is the way that you want to go, as I believe it is meant to be the next step in the configuration story.
Hope this helps.
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
Thanks Nicholoas.
I had the impression that ConfigurationSettings was deprecated and ConfigurationManager was the new boy on the block.
However, I don't understand how it works, nor how the other sytel of configuration settings works, nor what the syntaxes are for the files. And I cannot find a coherent source of information - the beta docs are totally inadaquate!
Have you any more details?
Iain
Hi Iain,
You're right, ConfigurationManager is the new configuration story. It should just be a drop in replacement for ConfigurationSettings though, you can use ConfigurationManager.AppSettings the same way you used to use ConfigurationSettings.AppSettings.
-Shawn