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