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