X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Resources%2FChangeLog;h=870a6a6adfa0c3a1a957647b071b7907f7109c32;hb=b8467ef0dd2fbec0cfcd5ea90844e09edc47dab4;hp=4d1459edc161f99b292ff4cb839970f1d955cf7f;hpb=da4f9e9b2afb23791029d0bb09d78b868aabd870;p=mono.git diff --git a/mcs/class/corlib/System.Resources/ChangeLog b/mcs/class/corlib/System.Resources/ChangeLog index 4d1459edc16..870a6a6adfa 100644 --- a/mcs/class/corlib/System.Resources/ChangeLog +++ b/mcs/class/corlib/System.Resources/ChangeLog @@ -1,3 +1,283 @@ +2010-07-07 Carlos Alberto Cortez + + 4.0 updates. + + * ResourceManager.cs: Mark ResourceSets as obsolete. + * ResourceReader.cs: New public Dispose method. + +2010-07-05 Carlos Alberto Cortez + + * ResourceWriter.cs: Implement 4.0 TypeNameConverter. + +2010-07-05 Carlos Alberto Cortez + + * ResourceWriter.cs: Implement 4.0 AddResource overloads taking a + Stream, as well as implement the same support in our AddResource that + takes an object too. + +2010-03-16 Jb Evain + + * ResourceManager.cs: use MOONLIGHT symbol to disambiguate + MonoTouch and Moonlight code. + +2010-03-01 Miguel de Icaza + + * Win32Resources.cs: Prevent infinite loops if the resource that + we are reading is invalid. Fixes the mscorlib part of #327500 + +2009-11-01 Sebastien Pouliot + + * ResourceManager.cs (GetResourceFilePath): Don't use + 'resourceDir' which should always be null for Moonlight + +2009-10-19 Jb Evain + + * ResourceReader.cs: fix the build. + +2009-10-18 Sebastien Pouliot + + * ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use + UnmanagedMemoryStream (instead of IntPtrStream) + +2009-04-16 Geoff Norton + + * ResourceWriter.cs: The magic internal type here is required to match + Microsofts for SL2 resource deserialization. + +2009-03-06 Gonzalo Paniagua Javier + + * ResourceSet.cs: for custom resource sets without a reader, pretende + that's we've already read the stream. + +2009-02-27 Gonzalo Paniagua Javier + + * ResourceSet.cs: populating the resource should be locked because the + resourceset could be shared. + +2009-01-24 Gonzalo Paniagua Javier + + * ResourceManager.cs: don't throw every time we try to load a resource + satellite assembly that does not exist. + +2008-12-22 Gonzalo Paniagua Javier + + * ResourceManager.cs: cache negative results too. + +2008-12-18 Gonzalo Paniagua Javier + + * ResourceManager.cs: avoid duplication of keys if more than one + thread is creating the ResourceSet. + +2008-12-17 Gonzalo Paniagua Javier + + * ResourceManager.cs: cache ResourceSets instead of loading them from + their assembly every time they are needed. + +2008-08-11 Larry Ewing + + * ResourceReader.cs: fix reading/writing beyond the end of the + current resource when the resource is larger than 1024 bytes. + +2008-06-30 Marek Safar + + * ResourceReader.cs: Cache resources enumerator in ResourceReader. + +2008-06-30 Marek Safar + + * ResourceReader.cs: Sealed ResourceEnumerator. + +2008-06-28 Rodrigo Kumpera + + * ResourceReader.cs (LoadResourceValues): Kill ununsed local. + + * ResourceReader.cs (CreateResourceInfo): Don't return a big + struct on stack, pass it as a reference argument. + +2008-06-27 Rodrigo Kumpera + + * ResourceReader.cs: Avoid an extra array copy for the resource arrays. + +2008-06-27 Zoltan Varga + + * ResourceManager.cs: Add a negative cache for culture->resource set mappings + which caches lookup failures. + + * ResourceSet.cs (GetObjectInternal): Search the hash table in the ignoreCase + case too. + +2008-06-27 Andreas Nahr + + * MissingManifestResourceException.cs: + * MissingSatelliteAssemblyException.cs: + * ResourceManager.cs: Fix parameter names + +2008-05-27 Marek Habersack + + * ResourceReader.cs: reimplement the way resources are read when + enumerator is used. The resource indexes and names are read in + ReadHeaders when ResourceReader is created and the resource values + are read and cached when the enumerator is created. This removed a + lot of unnecessary locking and made the whole process more + efficient and faster (a test application would acquire the locks + 40000 times durng a 1.7s run, right now it acquires the lock 1 + time). + +2008-05-08 Miguel de Icaza + + * ResourceSet.cs: Pass the ignoreCase argument, needed to + implement ResourceManager.IgnoreCase. + + Silverlight 2.0 applications store "page.xaml" as the key in the + resource keys, but request Page.xaml ones. + + * ResourceManager.cs: Avoid exception throwing and catching. + + * RutimeResourceSet.cs: Add a constructor that is required to + deserialize Silverlight 2.0 applications when deserializing the + resources that contains the XAML files in assemblies. + + We do not take advantage of this new constructor that uses an + IntPtrStream, instead we stick to the Stream API. + +2008-03-29 Gert Driesen + + * Win32Resources.cs: On 2.0 profile, initiale fixed info to zero-length + string when emitting versioninfo in compiler context. Default to + neutral language in compiler context. On 1.0 profile, use 0xffff as + default value for version parts. In Version, abort on first invalid + version part and also set FileVersion string. In ProductVersion and + FileVersion, parse version string and abort on first invalid version + part. + +2008-03-15 Gert Driesen + + * ResourceManager.cs: Default to RuntimeResourceSet for all ctors. + * ResourceSet.cs: Avoid duplicate argument checks. On 2.0 profile, + throw ObjectDisposedException when ResourceSet is disposed. + * RuntimeResourceSet.cs: On 2.0 profile, throw ObjectDisposedException + when ResourceSet is disposed. + +2008-03-04 Sebastien Pouliot + + * ResourceManager.cs: Use RuntimeResourceSet, an internal type, just + like MS does (and tell us indirectly with a Type property). + * ResourceSet.cs: Fix a few problems found with new unit tests. Also + fix some exception parameters. + * RuntimeResourceSet.cs: New. Internal type used by ResourceManager. + ResouceSet cannot be used, as is, because it does not clone objects, + when possible, leading to problems when those objects are disposed. + +2008-01-26 Gert Driesen + + * ResourceWriter.cs: On 2.0 profile, do not mistakenly identify an + enum as a predefined type. Fixes bug #325223. + +2007-11-10 Gert Driesen + + * ResourceWriter.cs: On 2.0 profile, use case-insensitive SortedList. + Changed exception messages and params to match MS. Allow null values + in AddResource overloads. In Dispose (bool), also generate resources + (header) if no resources were added. Fixes bug #339074. When Generate + is done, reset resources to null to prevent further editing. This + also avoids the need for a separate bool to indicate whether generate + was already invoked. Code formatting. + +2007-10-27 Gert Driesen + + * ResourceManager.cs: Removed temporary workaround for bug #43567. + Reworked basename to only throw ArgumentException if resource with + name ending on ".resources" does not actually exist. Fixes bug + #336283. Do not throw exception in GetStream since this is already + done in InternalGetResourceSet. In InternalGetResourceSet, do not + throw MissingManifestResourceException when culture is null. Fixed + MissingManifestResourceException message to match MS. When using + file-based ResourceManager, then also throw an exception when file + does not exist for neutral culture. + +2007-09-17 Gert Driesen + + * ResourceManager.cs: Move code for determining manifest resource + name into separate method. Only use satellite assemblies for + non-invariant cultures. For invariant culture, only load resources + from main assembly. + +2007-09-17 Gert Driesen + + * ResourceManager.cs: BaseName(Field) should return only the name. + Added resourceSource field to store the actual type, which we need for + the namespace. Added CheckBaseName method to avoid code duplication. + Only check whether basename does not end in '.resources' on 1.0 + profile. Fixed paramname of ArgumentNullExceptions to match MS. + Modified GetManifestResourceStreamNoCase to use resourceSource field + to construct manifest resource name. Modified GetStream to use + CurrentUICulture when culture is null. Fixed InternalGetResourceSet + to use invariant resources when culture is the neutral culture. + Code formatting. +> +2007-08-24 Gert Driesen + + * ResourceReader.cs: Fixed exception message to match MS. Removed + duplicate checks from string ctor. + +2007-08-09 Atsushi Enomoto + + * ResourceReader.cs : implemented GetResourceData(). Resources with + unresolvable types could still be parsed, so hold type names + instead of types. + +2007-07-16 Rodrigo Kumpera + + * ResourceReader.cs (ResourceValue): Put the null resource check + before the resource version 2 check, this fixes bug #81757 + +2007-05-28 Atsushi Enomoto + + * ResourceWriter.cs : fix for runtime serialization type index. + Fixed bug #81759. + +2007-05-28 Atsushi Enomoto + + * ResourceWriter.cs : temporarily disable 2.0 output until I get + bug #81759 fixed. + +2007-05-28 Atsushi Enomoto + + * IResourceWriter.cs NeutralResourcesLanguageAttribute.cs + SatelliteContractVersionAttribute.cs ResourceManager.cs + IResourceReader.cs ResourceSet.cs ResourceWriter.cs + ResourceReader.cs UltimateResourceFallbackLocation.cs + MissingManifestResourceException.cs : + implemented 2.0 resource support (write, and remaining read bits) + and GetStream(). Cosmetic attributes fixes. + +2007-05-25 Atsushi Enomoto + + * MissingSatelliteAssemblyException.cs : new file. + +2007-02-16 Gert Driesen + + * ResourceReader.cs: Fixed typo. + +2006-12-30 Alexander Olk + + * ResourceManager.cs: Don't create the ResourceSets hashtable in the + protected ctor, instead move it to the public ctors. Fixes some not + working nunit tests. Also, return a closed ResourceSet instead of + creating a new one. Fixes one more test. If only BaseNameField is + provided, try to create a resource set from the BaseNameField. One + more test that passes now. + * ResourceSet.cs: Remove isDisposed. Not needed anymore. + +2006-12-30 Alexander Olk + + * ResourceManager.cs: Iterate through the values of the ResourceSets + hashtable in ReleaseAllResources instead through the hashtable itself. + +2006-12-30 Gert Driesen + + * ResourceReader.cs: Support reading byte arrays in v2 resource files. + Patch provided by Red Forks. Fixes bug #79976. + 2006-10-29 Alexander Olk * ResourceSet.cs, ResourceManager.cs: Calling ResourceSet.Close()