Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Initial commit of System.IO.Packaging #1818

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a71752a
Initial commit of System.IO.Packaging
dotnet-bot Apr 18, 2015
ec6d6bf
Port System.IO.Packaging product sources to .NET Core surface area
May 21, 2015
be9a584
Partial implementation of new string resources
EricWhiteDev Jun 17, 2015
d321445
Set dependencies to specific version 23008 for Sys.IO.Packaging
Jun 19, 2015
a53796b
Update string resources
EricWhiteDev Jun 19, 2015
f6f614c
Fixes per Stephen Toub's comments
EricWhiteDev Jun 19, 2015
b01c803
Removed Invariant.cs - replaced all calls to Invariant.Assert to Debu…
EricWhiteDev Jun 19, 2015
5721cb6
Fix check for encoding
EricWhiteDev Jun 19, 2015
c1eb5f6
Clean up of comments, remove some unused code
EricWhiteDev Jun 19, 2015
d1f73c2
Fix tests that failed under Unix. Modify to meet coding guidelines
EricWhiteDev Jun 19, 2015
340dde4
Remove IgnoredItemHelper class, references to it. This is an artifac…
EricWhiteDev Jun 20, 2015
1b27ec5
Temp fix - build with specific version until the issue is fixed in CO…
EricWhiteDev Jun 20, 2015
120a78b
Remove unused code, re-write small amount of code to make easier to d…
EricWhiteDev Jun 23, 2015
2a0e0dd
Fix spelling, small rewrite to make easier to debug.
EricWhiteDev Jun 23, 2015
0736db4
Remove unused code
EricWhiteDev Jun 23, 2015
ef61cf5
Fix processing of encodings of parts
EricWhiteDev Jun 23, 2015
360eb51
Change throwing exceptions to be more compatible.
EricWhiteDev Jun 23, 2015
6be6936
update tests
EricWhiteDev Jun 23, 2015
7a041a7
Merge branch 'master' into systemiopackaging
EricWhiteDev Aug 4, 2015
30fe52e
Modify tests so that they pull test assets from the corefx-testdata r…
EricWhiteDev Aug 6, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/System.IO.Packaging/System.IO.Packaging.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.IO.Packaging", "src\System.IO.Packaging.csproj", "{1F827C19-6023-48D3-909F-9F43AB42FAF0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.IO.Packaging.Tests", "tests\System.IO.Packaging.Tests.csproj", "{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Release|Any CPU.Build.0 = Release|Any CPU
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
462 changes: 462 additions & 0 deletions src/System.IO.Packaging/src/Resources/Strings.resx

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions src/System.IO.Packaging/src/System.IO.Packaging.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1F827C19-6023-48D3-909F-9F43AB42FAF0}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>System.IO.Packaging</RootNamespace>
<AssemblyName>System.IO.Packaging</AssemblyName>
<NuGetTargetFrameworkMoniker>DNXCore,Version=v5.0</NuGetTargetFrameworkMoniker>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
</PropertyGroup>
<ItemGroup>
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="System\IO\Packaging\CompressionOption.cs" />
<Compile Include="System\IO\Packaging\ContentType.cs" />
<Compile Include="System\IO\Packaging\EncryptionOption.cs" />
<Compile Include="System\IO\Packaging\FileFormatException.cs" />
<Compile Include="System\IO\Packaging\IgnoreFlushAndCloseStream.cs" />
<Compile Include="System\IO\Packaging\InternalRelationshipCollection.cs" />
<Compile Include="System\IO\Packaging\Package.cs" />
<Compile Include="System\IO\Packaging\PackagePart.cs" />
<Compile Include="System\IO\Packaging\PackagePartCollection.cs" />
<Compile Include="System\IO\Packaging\PackageProperties.cs" />
<Compile Include="System\IO\Packaging\PackageRelationship.cs" />
<Compile Include="System\IO\Packaging\PackageRelationshipCollection.cs" />
<Compile Include="System\IO\Packaging\PackageRelationshipSelector.cs" />
<Compile Include="System\IO\Packaging\PackageRelationshipSelectorType.cs" />
<Compile Include="System\IO\Packaging\PackageXmlEnum.cs" />
<Compile Include="System\IO\Packaging\PackageXmlStringTable.cs" />
<Compile Include="System\IO\Packaging\PackagingUtilities.cs" />
<Compile Include="System\IO\Packaging\PackUriHelper.cs" />
<Compile Include="System\IO\Packaging\PartBasedPackageProperties.cs" />
<Compile Include="System\IO\Packaging\TargetMode.cs" />
<Compile Include="System\IO\Packaging\XmlCompatibilityReader.cs" />
<Compile Include="System\IO\Packaging\XmlWrappingReader.cs" />
<Compile Include="System\IO\Packaging\ZipPackage.cs" />
<Compile Include="System\IO\Packaging\ZipPackagePart.cs" />
<Compile Include="System\IO\Packaging\ZipStreamManager.cs" />
<Compile Include="System\IO\Packaging\ZipWrappingStream.cs" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

//-----------------------------------------------------------------------------
//
// Description:
// CompressionOption enumeration is used as an aggregate mechanism to give users controls
// over Compression features.
//
//-----------------------------------------------------------------------------

namespace System.IO.Packaging
{
/// <summary>
/// This class is used to control Compression for package parts.
/// </summary>
public enum CompressionOption : int
{
/// <summary>
/// Compression is turned off in this mode.
/// </summary>
NotCompressed = -1,

/// <summary>
/// Compression is optimized for a resonable compromise between size and performance.
/// </summary>
Normal = 0,

/// <summary>
/// Compression is optimized for size.
/// </summary>
Maximum = 1,

/// <summary>
/// Compression is optimized for performance.
/// </summary>
Fast = 2,

/// <summary>
/// Compression is optimized for super performance.
/// </summary>
SuperFast = 3,
}
}
Loading