1 2008-03-29 Gert Driesen <drieseng@users.sourceforge.net>
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
11 2008-03-15 Gert Driesen <drieseng@users.sourceforge.net>
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.
19 2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
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.
29 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
31 * ResourceWriter.cs: On 2.0 profile, do not mistakenly identify an
32 enum as a predefined type. Fixes bug #325223.
34 2007-11-10 Gert Driesen <drieseng@users.sourceforge.net>
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.
44 2007-10-27 Gert Driesen <drieseng@users.sourceforge.net>
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.
56 2007-09-17 Gert Driesen <drieseng@users.sourceforge.net>
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
63 2007-09-17 Gert Driesen <drieseng@users.sourceforge.net>
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.
76 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
78 * ResourceReader.cs: Fixed exception message to match MS. Removed
79 duplicate checks from string ctor.
81 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
83 * ResourceReader.cs : implemented GetResourceData(). Resources with
84 unresolvable types could still be parsed, so hold type names
87 2007-07-16 Rodrigo Kumpera <rkumpera@novell.com>
89 * ResourceReader.cs (ResourceValue): Put the null resource check
90 before the resource version 2 check, this fixes bug #81757
92 2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
94 * ResourceWriter.cs : fix for runtime serialization type index.
97 2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
99 * ResourceWriter.cs : temporarily disable 2.0 output until I get
102 2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
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.
112 2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
114 * MissingSatelliteAssemblyException.cs : new file.
116 2007-02-16 Gert Driesen <drieseng@users.sourceforge.net>
118 * ResourceReader.cs: Fixed typo.
120 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
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.
130 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
132 * ResourceManager.cs: Iterate through the values of the ResourceSets
133 hashtable in ReleaseAllResources instead through the hashtable itself.
135 2006-12-30 Gert Driesen <drieseng@users.sourceforge.net>
137 * ResourceReader.cs: Support reading byte arrays in v2 resource files.
138 Patch provided by Red Forks. Fixes bug #79976.
140 2006-10-29 Alexander Olk <alex.olk@googlemail.com>
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.
146 2006-03-14 Robert Jordan <robertj@gmx.net>
148 * ResourceManager.cs: Don't stop the resource set lookup until
149 the invariant culture is reached. Fixes bug #77242.
151 2005-11-19 Zoltan Varga <vargaz@gmail.com>
153 * Win32Resources.cs: Add a new 'FileVersion' property.
155 2005-07-25 Marek Safar <marek.safar@seznam.cz>
157 * ResourceReader.cs: Implemented reading of primitives for version 2.
159 2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
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).
165 2005-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
167 * ResourceManager.cs: use culture.Equals in InternalGetResourceSet().
169 2005-02-12 Geoff Norton <gnorton@customerdna.com>
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.
176 2005-02-11 Zoltan Varga <vargaz@freemail.hu>
178 * Win32Resources.cs: Fix warning.
180 2004-12-06 Ben Maurer <bmaurer@ximian.com>
182 * ResourceManager.cs (InternalResourceManager): on msft, they
183 search for a case-insenstitive match too here.
185 2004-05-02 Sebastien Pouliot <sebastien@ximian.com>
187 * ResourceManager.cs: Avoid endless recursion when a resource file
190 2004-04-08 Lluis Sanchez <lluis@ximian.com>
192 * ResourceSet.cs: Added minor null check.
194 2004-02-03 Jackson Harper <jackson@ximian.com>
196 * ResourceSet.cs: Do not throw an exception for null strings.
198 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
200 * Win32Resources.cs (Win32VersionInfoResource): Add more properties.
202 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
204 * Win32Resources.cs (Win32VersionInfoResource:WriteTo): Add padding
205 at the end of each string entry.
207 * Win32Resources.cs: Fix warnings not detected by mcs.
209 2004-01-08 Zoltan Varga <vargaz@freemail.hu>
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.
216 * Win32Resources.cs (Win32VersionInfoResource): Fix version number
217 calculation. Add Language property.
219 2004-01-05 Zoltan Varga <vargaz@freemail.hu>
221 * Win32Resources.cs: New file.
223 * Win32Resources.cs: The value of properties can't be empty.
225 * Win32Resources.cs: Add Win32ResourceType enumeration. Add accessors
226 for well-known property names. Add missing namespace declaration.
228 2003-12-17 Zoltan Varga <vargaz@freemail.hu>
230 * ResourceWriter.cs (Stream): New internal property used by Ref.Emit.
232 2003-11-28 Dick Porter <dick@ximian.com>
234 * ResourceSet.cs: Do string compares with the Invariant culture.
236 2003-11-18 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
238 * ResourceSet.cs: Implemented v1.1 updates
240 2003-09-07 Dick Porter <dick@ximian.com>
242 * Temporary workaround for bug 43567, so that Npgsql at least
245 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
247 * ResourceManager.cs: fixed infinite loop when the resource is not
248 found. Also fixes bug #34196.
250 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
252 * ResourceManager.cs: enabled the code that calls GetSatelliteAssembly
253 and ignore the exception thrown if the assembly cannot be loaded.
255 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
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.
261 2002-08-19 Dick Porter <dick@ximian.com>
263 * ResourceWriter.cs: Implemented all methods
265 * ResourceReader.cs: Cope with our ResourceSet class name, as well
268 2002-08-18 Dick Porter <dick@ximian.com>
270 * ResourceReader.cs: Finished basic implementation. Some
271 optimisation in conjunction with ResourceSet still possible though
273 2002-08-14 Dick Porter <dick@ximian.com>
275 * ResourceSet.cs: Throw the correct exceptions
277 * ResourceManager.cs: Implemented all unfinished methods
279 2002-03-12 Duncan Mak <duncan@ximian.com>
281 * MissingManifestResourceException.cs: This should inherit from
282 SystemException, not Exception.
284 2002-01-26 Nick Drochak <ndrochak@gol.com>
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.
290 2002-01-24 Nick Drochak <ndrochak@gol.com>
292 * ResourceReader.cs: Implemented constructors. Started on the
293 GetEnumerator() method. Not done yet, but comitting for
294 'disaster recovery' purposes.
296 2002-01-19 Duncan Mak <duncan@ximian.com>
298 * *.cs: Fixed indentation. There was a stupid bug in my .emacs file.
300 2002-1-17 Duncan Mak <duncan@duncan@ximian.com>
302 * ResourceSet.cs: Implemented GetObject (string, bool) and GetString
303 (string, bool). ResourceSet has no more MonoTODOs! Also added in the
304 Serializable attribute.
306 * *.cs: convert to Miguel's brace style.
308 2002-01-17 Duncan Mak <duncan@ximian.com>
310 * ResourceManager.cs: Fixed GetNeutralResourcesLanguage () and added
311 new attributes documented in 1.0 SDK.
313 2002-01-17 Duncan Mak <duncan@ximian.com>
315 * ResourceWriter.cs: Added MonoTODO decorations.
317 * SatelliteContractVersionAttribute.cs: added new attributes in 1.0 SDK.
319 * NeutralResoucesLanguageAttribute.cs: added new attributes in 1.0 SDK
321 2002-01-16 Duncan Mak <duncan@ximian.com>
323 * ResourceReader.cs: Fixed some typos.
325 * ResourceManager.cs: After reading the tutorial from the SDK,
326 finished all the ResourceManager constructors and removed those
329 Removed MonoTODO from GetNeutralResourcesLanguage (Assembly)
330 because Miguel just implemented the whole class, including the
331 constructor that I needed (CultureInfo (string)).
333 Updated fields after reading the new docs from the final SDK.
335 * ResXFileRef.cs, ResXResourceReader.cs: Removed. They are part of
336 Windows.Forms and require System.Xml, which we don't have access to.
338 2002-01-13 Duncan Mak <duncan@ximian.com>
340 * ResourceManager.cs: Added more MonoTODOs and cleaned up some
343 2002-01-09 Duncan Mak <duncan@ximian.com>
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
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().
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.
361 2002-01-05 Ravi Pratap <ravi@ximian.com>
363 * ResourceManager.cs : MonoTODO attribute decoration.
365 Tue Dec 18 13:18:32 CET 2001 Paolo Molaro <lupus@ximian.com>
367 * *.cs: fixed some of the compilation issues: missing
368 using directives, typos.
370 2001-12-11 Duncan Mak <duncan@ximian.com>
374 2001-12-10 Duncan Mak <duncan@ximian.com>
376 * ResourceManager.cs (GetNeutralResourcesLanguage):
377 (GetSatelliteContractVersion): Implemented.
379 2001-12-09 Duncan Mak <duncan@ximian.com>
381 * ResXResourceReader.cs: Initial attempt.
383 * ResXFileRef.cs: Initial attempt.
385 * ResourceWriter.cs: Initial attempt.
387 * ResourceSet.cs (ReadResources): Implemented, with help from Radek Doulik.
389 2001-11-28 Duncan Mak <duncan@ximian.com>
391 * ResourceManager.cs: First attempt.
393 2001-11-27 Duncan Mak <duncan@ximian.com>
396 First attempt, can't continue until ResourceReader and ResourceWriter are implemented.
398 * SatelliteContractVersionAttribute.cs: First attempt. The spec is quite amibiguous here.
400 * NeutralResoucesLanguageAttribute.cs: Complete.
402 * MissingManifestResourceException.cs: Complete.
404 * IResourceReader.cs: Complete.
406 * IResourceWriter.cs: Complete.