f3bb7c43af54d3cdb5c5eeb1a629fe09843e88ea
[mono.git] / mcs / class / corlib / System.Resources / ChangeLog
1 2008-03-29  Gert Driesen  <drieseng@users.sourceforge.net>
2
3         * Win32Resources.cs: On 2.0 profile, initiale fixed info to zero-length
4         string when emitting versioninfo in compiler context. Default to
5         neutral language in compiler context. On 1.0 profile, use 0xffff as
6         default value for version parts. In Version, abort on first invalid
7         version part and also set FileVersion string. In ProductVersion and
8         FileVersion, parse version string and abort on first invalid version
9         part.  
10
11 2008-03-15  Gert Driesen  <drieseng@users.sourceforge.net>
12
13         * ResourceManager.cs: Default to RuntimeResourceSet for all ctors.
14         * ResourceSet.cs: Avoid duplicate argument checks. On 2.0 profile,
15         throw ObjectDisposedException when ResourceSet is disposed.
16         * RuntimeResourceSet.cs: On 2.0 profile, throw ObjectDisposedException
17         when ResourceSet is disposed.
18
19 2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>
20
21         * ResourceManager.cs: Use RuntimeResourceSet, an internal type, just
22         like MS does (and tell us indirectly with a Type property).
23         * ResourceSet.cs: Fix a few problems found with new unit tests. Also
24         fix some exception parameters.
25         * RuntimeResourceSet.cs: New. Internal type used by ResourceManager.
26         ResouceSet cannot be used, as is, because it does not clone objects,
27         when possible, leading to problems when those objects are disposed.
28
29 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
30
31         * ResourceWriter.cs: On 2.0 profile, do not mistakenly identify an
32         enum as a predefined type. Fixes bug #325223.
33
34 2007-11-10  Gert Driesen  <drieseng@users.sourceforge.net>
35
36         * ResourceWriter.cs: On 2.0 profile, use case-insensitive SortedList.
37         Changed exception messages and params to match MS. Allow null values
38         in AddResource overloads. In Dispose (bool), also generate resources
39         (header) if no resources were added. Fixes bug #339074. When Generate
40         is done, reset resources to null to prevent further editing.  This
41         also avoids the need for a separate bool to indicate whether generate
42         was already invoked. Code formatting.
43
44 2007-10-27  Gert Driesen  <drieseng@users.sourceforge.net>
45
46         * ResourceManager.cs: Removed temporary workaround for bug #43567.
47         Reworked basename to only throw ArgumentException if resource with
48         name ending on ".resources" does not actually exist. Fixes bug
49         #336283. Do not throw exception in GetStream since this is already
50         done in InternalGetResourceSet. In InternalGetResourceSet, do not
51         throw MissingManifestResourceException when culture is null. Fixed
52         MissingManifestResourceException message to match MS. When using
53         file-based ResourceManager, then also throw an exception when file
54         does not exist for neutral culture.
55
56 2007-09-17  Gert Driesen  <drieseng@users.sourceforge.net>
57
58         * ResourceManager.cs: Move code for determining manifest resource
59         name into separate method. Only use satellite assemblies for
60         non-invariant cultures. For invariant culture, only load resources
61         from main assembly.
62
63 2007-09-17  Gert Driesen  <drieseng@users.sourceforge.net>
64
65         * ResourceManager.cs: BaseName(Field) should return only the name.
66         Added resourceSource field to store the actual type, which we need for
67         the namespace. Added CheckBaseName method to avoid code duplication.
68         Only check whether basename does not end in '.resources' on 1.0
69         profile. Fixed paramname of ArgumentNullExceptions to match MS.
70         Modified GetManifestResourceStreamNoCase to use resourceSource field
71         to construct manifest resource name. Modified GetStream to use
72         CurrentUICulture when culture is null. Fixed InternalGetResourceSet
73         to use invariant resources when culture is the neutral culture.
74         Code formatting.
75 >
76 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
77
78         * ResourceReader.cs: Fixed exception message to match MS. Removed
79         duplicate checks from string ctor.
80
81 2007-08-09  Atsushi Enomoto  <atsushi@ximian.com>
82
83         * ResourceReader.cs : implemented GetResourceData(). Resources with
84           unresolvable types could still be parsed, so hold type names
85           instead of types.
86
87 2007-07-16  Rodrigo Kumpera  <rkumpera@novell.com>
88
89         * ResourceReader.cs (ResourceValue): Put the null resource check
90           before the resource version 2 check, this fixes bug #81757
91
92 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
93
94         * ResourceWriter.cs : fix for runtime serialization type index.
95           Fixed bug #81759.
96
97 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
98
99         * ResourceWriter.cs : temporarily disable 2.0 output until I get
100           bug #81759 fixed.
101
102 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
103
104         * IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
105           SatelliteContractVersionAttribute.cs ResourceManager.cs
106           IResourceReader.cs ResourceSet.cs ResourceWriter.cs
107           ResourceReader.cs UltimateResourceFallbackLocation.cs
108           MissingManifestResourceException.cs :
109           implemented 2.0 resource support (write, and remaining read bits)
110           and GetStream(). Cosmetic attributes fixes.
111
112 2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>
113
114         * MissingSatelliteAssemblyException.cs : new file.
115
116 2007-02-16  Gert Driesen  <drieseng@users.sourceforge.net>
117
118         * ResourceReader.cs: Fixed typo.
119
120 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
121
122         * ResourceManager.cs: Don't create the ResourceSets hashtable in the
123         protected ctor, instead move it to the public ctors. Fixes some not
124         working nunit tests. Also, return a closed ResourceSet instead of
125         creating a new one. Fixes one more test. If only BaseNameField is
126         provided, try to create a resource set from the BaseNameField. One
127         more test that passes now.
128         * ResourceSet.cs: Remove isDisposed. Not needed anymore.
129
130 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
131
132         * ResourceManager.cs: Iterate through the values of the ResourceSets
133         hashtable in ReleaseAllResources instead through the hashtable itself.
134
135 2006-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
136
137         * ResourceReader.cs: Support reading byte arrays in v2 resource files.
138         Patch provided by Red Forks. Fixes bug #79976.
139
140 2006-10-29  Alexander Olk  <alex.olk@googlemail.com>
141
142         * ResourceSet.cs, ResourceManager.cs: Calling ResourceSet.Close()
143           disposes a resource set. A closed resource set will now be
144           removed from ResourceSets. Fixes bug #79182.
145
146 2006-03-14  Robert Jordan  <robertj@gmx.net>
147
148         * ResourceManager.cs: Don't stop the resource set lookup until
149         the invariant culture is reached. Fixes bug #77242.
150
151 2005-11-19  Zoltan Varga  <vargaz@gmail.com>
152
153         * Win32Resources.cs: Add a new 'FileVersion' property.
154
155 2005-07-25  Marek Safar  <marek.safar@seznam.cz>
156
157         *  ResourceReader.cs: Implemented reading of primitives for version 2.
158
159 2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>
160
161         *  ResourceReader.cs, ResourceSet.cs: Added a LinkDemand for 
162         SerializationFormatter when using a Stream constructor (other ctors
163         have different security - e.g. FileIOPermission for opening a file).
164
165 2005-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
166
167         * ResourceManager.cs: use culture.Equals in InternalGetResourceSet().
168
169 2005-02-12  Geoff Norton  <gnorton@customerdna.com>
170
171         * ResourceReader.cs: If a resource type index is -1 return null 
172         instead of throwing an exception
173         * ResourceWriter.cs: If an object is null; encode it with type index
174         -1 instead of throwing an exception.
175         
176 2005-02-11  Zoltan Varga  <vargaz@freemail.hu>
177
178         * Win32Resources.cs: Fix warning.
179
180 2004-12-06  Ben Maurer  <bmaurer@ximian.com>
181
182         * ResourceManager.cs (InternalResourceManager): on msft, they
183         search for a case-insenstitive match too here.
184
185 2004-05-02  Sebastien Pouliot  <sebastien@ximian.com>
186
187         * ResourceManager.cs: Avoid endless recursion when a resource file
188         isn't found.
189
190 2004-04-08  Lluis Sanchez <lluis@ximian.com>
191
192         * ResourceSet.cs: Added minor null check.
193
194 2004-02-03  Jackson Harper <jackson@ximian.com>
195
196         * ResourceSet.cs: Do not throw an exception for null strings.
197         
198 2004-01-13  Zoltan Varga  <vargaz@freemail.hu>
199
200         * Win32Resources.cs (Win32VersionInfoResource): Add more properties.
201
202 2004-01-09  Zoltan Varga  <vargaz@freemail.hu>
203
204         * Win32Resources.cs (Win32VersionInfoResource:WriteTo): Add padding
205         at the end of each string entry.
206
207         * Win32Resources.cs: Fix warnings not detected by mcs.
208
209 2004-01-08  Zoltan Varga  <vargaz@freemail.hu>
210
211         * Win32Resources.cs: Organize win32 resources into a class hierarchy
212         with the class Win32Resource as the abstract superclass. Add 
213         Win32ResFileReader and Win32IconFileReader classes and the 
214         corresponding resource types.
215
216         * Win32Resources.cs (Win32VersionInfoResource): Fix version number 
217         calculation. Add Language property.
218
219 2004-01-05  Zoltan Varga  <vargaz@freemail.hu>
220
221         * Win32Resources.cs: New file.
222
223         * Win32Resources.cs: The value of properties can't be empty.
224
225         * Win32Resources.cs: Add Win32ResourceType enumeration. Add accessors
226         for well-known property names. Add missing namespace declaration.
227
228 2003-12-17  Zoltan Varga  <vargaz@freemail.hu>
229
230         * ResourceWriter.cs (Stream): New internal property used by Ref.Emit.
231
232 2003-11-28  Dick Porter  <dick@ximian.com>
233
234         * ResourceSet.cs: Do string compares with the Invariant culture.
235
236 2003-11-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
237
238         * ResourceSet.cs: Implemented v1.1 updates
239
240 2003-09-07  Dick Porter  <dick@ximian.com>
241
242         * Temporary workaround for bug 43567, so that Npgsql at least
243         can run.
244
245 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
246
247         * ResourceManager.cs: fixed infinite loop when the resource is not
248         found. Also fixes bug #34196.
249
250 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
251
252         * ResourceManager.cs: enabled the code that calls GetSatelliteAssembly
253         and ignore the exception thrown if the assembly cannot be loaded.
254
255 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
256
257         * ResourceManager.cs: fixed the name for the file when the culture is
258         not de invariant culture. Commented out the GetSatelliteAssembly code
259         to avoid NotImplementedException being thrown.
260
261 2002-08-19  Dick Porter  <dick@ximian.com>
262
263         * ResourceWriter.cs: Implemented all methods
264
265         * ResourceReader.cs: Cope with our ResourceSet class name, as well
266         as theirs
267
268 2002-08-18  Dick Porter  <dick@ximian.com>
269
270         * ResourceReader.cs: Finished basic implementation.  Some
271         optimisation in conjunction with ResourceSet still possible though
272
273 2002-08-14  Dick Porter  <dick@ximian.com>
274
275         * ResourceSet.cs: Throw the correct exceptions
276
277         * ResourceManager.cs: Implemented all unfinished methods
278
279 2002-03-12  Duncan Mak  <duncan@ximian.com>
280
281         * MissingManifestResourceException.cs: This should inherit from
282         SystemException, not Exception.
283
284 2002-01-26  Nick Drochak  <ndrochak@gol.com>
285
286         * ResourceReader.cs: Finsished reading resource files with just strings
287         in them.  Need to figure out other types, and also resources with
288         multiple types in the same file.
289
290 2002-01-24  Nick Drochak  <ndrochak@gol.com>
291
292         * ResourceReader.cs: Implemented constructors. Started on the 
293         GetEnumerator() method.  Not done yet, but comitting for 
294         'disaster recovery' purposes.
295
296 2002-01-19  Duncan Mak  <duncan@ximian.com>
297
298         * *.cs: Fixed indentation. There was a stupid bug in my .emacs file.
299
300 2002-1-17  Duncan Mak  <duncan@duncan@ximian.com>
301
302         * ResourceSet.cs: Implemented GetObject (string, bool) and GetString
303         (string, bool). ResourceSet has no more MonoTODOs! Also added in the
304         Serializable attribute.
305         
306         * *.cs: convert to Miguel's brace style.
307
308 2002-01-17  Duncan Mak  <duncan@ximian.com>
309
310         * ResourceManager.cs: Fixed GetNeutralResourcesLanguage () and added
311         new attributes documented in 1.0 SDK.
312
313 2002-01-17  Duncan Mak  <duncan@ximian.com>
314
315         * ResourceWriter.cs: Added MonoTODO decorations.
316
317         * SatelliteContractVersionAttribute.cs: added new attributes in 1.0 SDK.
318
319         * NeutralResoucesLanguageAttribute.cs: added new attributes in 1.0 SDK
320         
321 2002-01-16  Duncan Mak  <duncan@ximian.com>
322
323         * ResourceReader.cs: Fixed some typos.
324
325         * ResourceManager.cs: After reading the tutorial from the SDK,
326         finished all the ResourceManager constructors and removed those
327         MonoTODO tags.
328         
329         Removed MonoTODO from GetNeutralResourcesLanguage (Assembly)
330         because Miguel just implemented the whole class, including the
331         constructor that I needed (CultureInfo (string)).
332
333         Updated fields after reading the new docs from the final SDK.
334
335         * ResXFileRef.cs, ResXResourceReader.cs: Removed. They are part of
336         Windows.Forms and require System.Xml, which we don't have access to.
337
338 2002-01-13  Duncan Mak  <duncan@ximian.com>
339
340         * ResourceManager.cs: Added more MonoTODOs and cleaned up some 
341         indenting.
342
343 2002-01-09  Duncan Mak  <duncan@ximian.com>
344
345         * ResourceManager.cs: Fixed the GetSatelliteContractVersion()
346         method. It was missing a cast before. Removed MonoTODO
347         attribute. ;-) It was tested by John Barnette, so this shouldn't break
348         the build.
349
350         * ResourceManager.cs: Removed MonoTODO attribute on GetString
351         (string), as I believe it's correct. However, GetString
352         (string, CultureInfo) is definitely broken, so I'm marking it with
353         MonoTODO there. I also added MonoTODO to IntenalGetResourceSet().
354
355 2002-01-06  Duco Fijma <duco@lorentz.xs4all.nl>
356         * Finalizing IResourceReader and IResourceWriter interfaces: 
357           Added "new"-modifier to IResourceReader.GetEnumerator
358         * Fixed compilation issues in other *.cs, so that the 
359           System.Resources namespaces can be included in the corlib build.
360
361 2002-01-05  Ravi Pratap  <ravi@ximian.com>
362
363         * ResourceManager.cs : MonoTODO attribute decoration.
364         
365 Tue Dec 18 13:18:32 CET 2001 Paolo Molaro <lupus@ximian.com>
366
367         * *.cs: fixed some of the compilation issues: missing
368         using directives, typos.
369
370 2001-12-11  Duncan Mak  <duncan@ximian.com>
371
372         * Checked in to CVS.
373
374 2001-12-10  Duncan Mak  <duncan@ximian.com>
375
376         * ResourceManager.cs (GetNeutralResourcesLanguage):
377         (GetSatelliteContractVersion): Implemented.
378         
379 2001-12-09  Duncan Mak  <duncan@ximian.com>
380
381         * ResXResourceReader.cs: Initial attempt.
382
383         * ResXFileRef.cs: Initial attempt.
384
385         * ResourceWriter.cs: Initial attempt.
386
387         * ResourceSet.cs (ReadResources): Implemented, with help from Radek Doulik.
388
389 2001-11-28  Duncan Mak <duncan@ximian.com>      
390
391         * ResourceManager.cs: First attempt.
392
393 2001-11-27  Duncan Mak <duncan@ximian.com>
394
395         * ResourceSet.cs:
396         First attempt, can't continue until ResourceReader and ResourceWriter are implemented.
397                 
398         * SatelliteContractVersionAttribute.cs: First attempt. The spec is quite amibiguous here.
399
400         * NeutralResoucesLanguageAttribute.cs: Complete.
401
402         * MissingManifestResourceException.cs: Complete.
403
404         * IResourceReader.cs: Complete.
405
406         * IResourceWriter.cs: Complete.