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