Commit Graph
8 Commits
Author SHA1 Message Date
Alan McGovern e49f4636a9 [WindowsBase] Add better support for Default/Override content_types
System.IO.Packaging already had full support for parsing [Content_Types].xml
if it contained both <Override> and <Default> nodes when specifying content
types for files. However we had taken a shortcut before by explicitly writing
the content type of each file using an <Override> attribute for every file. We
now properly write a <Default> element and only use <Override> attributes when
required.
2011-10-18 11:43:58 +01:00
Alan McGovern 5736b87f2f [System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
2011-10-18 00:45:38 +01:00
Jérémie Laval e42fb4ccaf [WindowsBase] Don't treat special file [Content-Types].xml as a part, ends up as a duplicate when writing back a package 2011-10-11 16:14:50 +02:00
Miguel de Icaza 5e52dab0a6 Put WindowsBase on mcs/class for System.IO.Packaging
svn path=/trunk/mcs/; revision=141398
2009-09-06 23:19:06 +00:00
Miguel de Icaza fd4cade468 move back to olive
svn path=/trunk/mcs/; revision=118141
2008-11-06 19:14:34 +00:00
Alan McGovern dafcf5fd0c * WindowsBase/System.IO.Packaging/Package.cs:
* WindowsBase/System.IO.Packaging/ZipPackage.cs:
* WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs: Remove
  horrible hacks to load PackageProperties, PackageRelationships and
  PackageParts from a read-only stream. Other benefit is that these are
  now lazily loaded.

svn path=/trunk/mcs/; revision=118129
2008-11-06 18:15:02 +00:00
Alan McGovern 831c7c8695 * WindowsBase/WindowsBase.dll.sources:
* WindowsBase/System.IO.Packaging/Package.cs:
* WindowsBase/System.IO.Packaging/ZipPackage.cs:
* WindowsBase/System.IO.Packaging/PackUriHelper.cs:
* WindowsBase/Test/System.IO.Packaging/FakePackage.cs:
* WindowsBase/System.IO.Packaging/PackageProperties.cs:
* WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs: Complete the
  implementation of loading/saving PackageProperties. NUnit tests now
  pass.

svn path=/trunk/mcs/; revision=117891
2008-11-04 16:09:28 +00:00
Alan McGovern d72e4c702f Moving WindowsBase into the mcs tree
svn path=/trunk/mcs/; revision=117800
2008-11-03 19:30:08 +00:00