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

[339 byte] By [IainDowns] at [2008-2-6]
# 1
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

casperOne at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
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

IainDowns at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
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

ShawnFarkas-MS at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified