* [System] Add unit test for Xamarin-2315
* [System] Use temporary directory for saving settings files
This change modifies the ApplicationSettingsBaseTests so that they
store the settings files in a temporary directory. This reduces
the risk of failed tests because of stale files from previous test
run, or from a build that runs in parallel.
* [System] Improve Settings behavior (Xamarin-15818)
Improve behavior of ApplicationSettingsBase class to match Windows .NET
more closely.
* Implement Upgrade to allow Upgrading of settings
* Make SettingsPropertyValue serialization work for complex objects
* Make Save and Update throw in unimplemented configurations
* Changed Reload to clear PropertyValues so they are reloaded
and fire PropertyChanged event for all Properties
* Modified Reset to do what Reload used to do.
* Added a backup Type loading for custom SettingsProviders
* don't call SettingsSaving on Reset()
* [System] Fire SettingsSaving event (Xamarin-2315)
When calling ApplicationSettingsBase.Save() the SettingsSaving
event has to be fired.
* [System] Add unit tests for Xamarin-15818
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
Added missing check for empty strongname. This case is now handled the
same way as a missing strongname.
GetProductName() now correctly uses _Url_ and assembly.EscapedCodeBase
for its output.
Signed-off-by: Carsten Schlote <[email protected]>
The previous implementation creates eventually invalid filenames in a
random fashion on linux, mac, windows by having '/' or '\' chars
in the base64 output. As a result you can't save or retrieve your settings
due to filesystem errors.
This patch changes the output to plain hex values. This is a bit longer
then a base64 string, but also 100% filesystem safe.
Might
Signed-off-by: Carsten Schlote <[email protected]>
* CustomizableLocalFileSettingsProvider.cs: When saving the
properties, ignore the properties marked with
ApplicationScopedSettingAttribute, as they are not serialized in .net
by FileSettingsProvider (the default class used to save the config,
and the one using the class we are modifying).
Fixes#468658.
svn path=/trunk/mcs/; revision=151798
* CustomizableLocalFileSettingsProvider.cs: The name of the child
class of Settings should be 'normalized' by replacing the chars that
are invalid in a xml element name with their corresponding hexadecimal
values. This is specially visible when using classes container in
other classes.
Fixes#471289.
svn path=/trunk/mcs/; revision=151607
* CustomizableFileSettingsProvider.cs: reset the property value
instead of using the DefaultValue.
* SettingsPropertyValue.cs: new Reset() method.
* ApplicationSettingsBase.cs: Reset happens in Reload().
Patch by Andrew Kurochka that fixes bug #532180.
svn path=/trunk/mcs/; revision=140950
* WebConfigurationManager.cs: added code in the static constructor
to enable retrieving application settings via
ApplicationSettingsBase from within asp.net applications. Fixes
bug #491531
* ApplicationSettingsConfigurationFileMap.cs: added.
2009-04-03 Marek Habersack <[email protected]>
* CustomizableFileSettingsProvider.cs: added a way for System.Web
to specify path to the current Web.config. Fixes bug #491531
svn path=/trunk/mcs/; revision=130909
Fix for bug 439943.
* SettingValueElement.cs : do not write value element twice.
* CustomizableFileSettingsProvider.cs : create "value" element
instead of a document fragment so that the output from
SettingValueElement could become consistent.
Null binary value caused crash. Set appropriate
SerializedValue for each serialization type.
* SettingsPropertyValue.cs : output only when the value is
non-null.
svn path=/trunk/mcs/; revision=118565
* SettingValueElement.cs, CustomizableFileSettingsProvider.cs :
Fixed bug #439943. Xml deserialization for complex content was
not done correctly.
svn path=/trunk/mcs/; revision=117961
* System/System.Configuration/CustomizableFileSettingsProvider.cs:
* System/System.Configuration/ApplicationSettingsBase.cs:
* System.Configuration/System.Configuration/ClientConfigurationSystem.cs:
* System.Configuration/System.Configuration/ConfigurationManager.cs:
Generate the same file name for the local settings file and properly
save the configuration to it. Not loading it yet.
svn path=/trunk/mcs/; revision=117573
* CustomizableFileSettingsProvider.cs: when reading application or
user settings, only read those settings appropriate for the context.
This avoids duplicate key errors when 2 different groups have a key
with the same name.
* ApplicationSettingsBase.cs: the context is a hashtable with several
values set upon creation: SettingsKey, GroupName and
SettingsClassType.
Fixes bug #432466.
svn path=/trunk/mcs/; revision=114853
* 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