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