* CustomizableFileSettingsProvider.cs : when a property is found
only in the config file and not in the corresponding config type,
do not raise NRE but just add it as a simple property value.
Fixed bug #343459.
svn path=/trunk/mcs/; revision=90108
* SettingValueElement.cs : implement Reset().
* CustomizableFileSettingsProvider.cs : fixed company name getter
and product name getter.
LoadPropertyValue() should expect null ValueXml.
* LocalFileSettingsProvider.cs : time to switch. With a bit of
directory name difference, it should work.
svn path=/trunk/mcs/; revision=80469
* CustomizableLocalFileSettingsProvider.cs :
- added extern alias to avoid reference and I could enable
Initialize() again.
- Copied default user config path stuff (Company/Product/Version)
from MWF Application.cs.
- SaveProperties() and SavePropertiesNoRoaming() are unified, and
mostly rewritten to create userSettings, set value correctly, etc.
- GetPropertyValues() should collect default values as well.
It is not enabled yet, as Configuration.Save() seems to do wrong
and could overwrite application exe.config.
svn path=/trunk/mcs/; revision=79474
* CustomizableLocalFileSettingsProvider.cs : contribution for
LocalFileSettingsProvider implementation, by Noriaki Okimoto
([email protected]), modified by myself to fit for System.dll.
Origin of code license assignment at
http://ojk.sppd.ne.jp/ojkblog/?date=20070603#p01.
* LocalFileSettingsProvider.cs : rewriting to use above.
Due to some kind of compiler issue it is not enabled yet.
* System.dll.sources :
added CustomizableLocalFileSettingsProvider.cs.
svn path=/trunk/mcs/; revision=78561
* ConfigXmlDocument.cs : added explicit interface implementations.
* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
into itself and a method. Treat default LocalFileSettingsProvider
as a (valid) settings provider. Removed a fixme (only public
members should be available).
* SettingsBase.cs : check lock state in Save().
* SettingsProviderCollection.cs : remove bogus table field which
conflicts with the table in base ProviderCollection class.
svn path=/trunk/mcs/; revision=78240
* SettingsBase.cs : property values are filled only when each
property is accessed. It should not use virtual providers,
properties or context internally since they could be overriden.
* SettingsPropertyValue.cs : to serialize value as string, use
TypeConverter as well (as deserialization).
* SettingsProviderCollection.cs : (Add) null arg check.
* SettingsBaseTest.cs : new test.
* ApplicationSettingsBaseTest.cs : added Providers().
* System_test.dll.sources : added SettingsBaseTest.cs.
svn path=/trunk/mcs/; revision=78181
Add the possibility to bundle also the machine.config file, from
#80305.
* mkbundle.cs: Add option --machine-config. Warn the user that a
bundled machine.config file should be checked that it doesn't
contain sensitive data like private machine keys.
If that option was used, write the contents of the machine.config
file to the asm output file, and write code to call
mono_register_machine_config() with the data to the C output file.
svn path=/trunk/mcs/; revision=70489
* ConfigurationSettings.cs :
Handle <section> inside <section> as expected.
Fixed some ReadSections() consumers that it does _not_ consume
the surrounding EndElement. For now all issues I found are gone.
svn path=/trunk/mcs/; revision=66651
* ConfigurationSettings.cs : another MoveToNextElement() elimination.
When there is another section group after "system.drawing"
section in the existing machine.config, it borked as if there were
no "system.diagnostics" section.
It is still buggy; prepended sectionGroup still causes the above.
svn path=/trunk/mcs/; revision=66644
* ConfigurationSettings.cs : when there is no content in
sectionGroup, all the following contents were incorrectly read
as the empty group's subsection.
svn path=/trunk/mcs/; revision=66642
* ConfigurationSettings.cs: Assert FileIOPermission when loading a
configuration file.
* ConfigXmlDocument.cs: Add an imperative demand for PathDiscovery on
all (many classes) Filename properties. Ensure we're not using the
property (but the member) inside the class itself.
svn path=/trunk/mcs/; revision=63180
* ApplicationSettingsBase.cs : When we use default value, convert it
to proper type. Fixed bug #78654. Patch by Gareth Pearce.
* ApplicationSettingsBaseTest.cs : added test for bug #78654.
svn path=/trunk/mcs/; revision=62136
* SettingsPropertyCollection.cs : implemented some synchronization
releated members. Actually it can never be synchronized by itself.
* SettingsBase.cs : Synchronized() just returns the same instance,
marking it as IsSynchronized = true. Fixed bug #78430.
* LocalFileSettingsProviderTest.cs : commented some lines in
Initialized() as they don't work under .NET.
* ApplicationSettingsBaseTest.cs : added Synchronized(), test for
bug #78430.
* SwitchesTest.cs : Ignore NewSwitch under 2.0 as it fails under
.NET.
svn path=/trunk/mcs/; revision=60792
* ConfigurationSettings.cs : ok, now I correctly understand the
problem. Since appSettings section handlers are different between
1.x and 2.0 AppSettings property implementation should also be
different. It should really fix bug #78372.
svn path=/trunk/mcs/; revision=60654
* Makefile : add -r:System.Configuration under net_2_0.
* ConfigurationSettings.cs : use ConfigurationManager.GetConfig()
in its GetConfig(). No need to change AppSettings and
Default.GetConfig() behavior here.
* t35.cs, t35.exe.config, t35.exe.expected :
new test, largely from bug #78337.
* ConfigurationManagerTest.cs :
added GetSectionReturnsNativeObject().
* ConfigurationElement.cs,
DefaultSection.cs :
in some cases RawXml was set null string, so skip such cases.
* Configuration.cs : support IConfigurationSectionHandler here.
* ConfigurationManager.cs : GetSection() now returns name value
collection, not a section.
* ConfigurationSection.cs : added SectionHandler for
IConfigurationSectionHandler support, and use its Create() in
GetRuntimeObject().
* ClientConfigurationSystem.cs :
use GetRuntimeObject() in GetSection(). Thus now
ConfigurationManager.GetSection() returns a runtime object.
Fixed bug #78337.
svn path=/trunk/mcs/; revision=60483