Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b7eb52f

Browse files
committed
Merge pull request #2701 from stephentoub/packaging_initial
Initial commit of System.IO.Packaging
2 parents d231001 + 294e7ad commit b7eb52f

35 files changed

+18219
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.IO.Packaging", "src\System.IO.Packaging.csproj", "{1F827C19-6023-48D3-909F-9F43AB42FAF0}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.IO.Packaging.Tests", "tests\System.IO.Packaging.Tests.csproj", "{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{1F827C19-6023-48D3-909F-9F43AB42FAF0}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{C92FF1A4-DEA1-4F0F-9AEB-94C9B2561B57}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
EndGlobal

src/System.IO.Packaging/src/Resources/Strings.resx

Lines changed: 462 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{1F827C19-6023-48D3-909F-9F43AB42FAF0}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<RootNamespace>System.IO.Packaging</RootNamespace>
10+
<AssemblyName>System.IO.Packaging</AssemblyName>
11+
<NuGetTargetFrameworkMoniker>DNXCore,Version=v5.0</NuGetTargetFrameworkMoniker>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
16+
</PropertyGroup>
17+
<ItemGroup>
18+
<None Include="project.json" />
19+
</ItemGroup>
20+
<ItemGroup>
21+
<Compile Include="System\IO\Packaging\CompressionOption.cs" />
22+
<Compile Include="System\IO\Packaging\ContentType.cs" />
23+
<Compile Include="System\IO\Packaging\EncryptionOption.cs" />
24+
<Compile Include="System\IO\Packaging\FileFormatException.cs" />
25+
<Compile Include="System\IO\Packaging\IgnoreFlushAndCloseStream.cs" />
26+
<Compile Include="System\IO\Packaging\InternalRelationshipCollection.cs" />
27+
<Compile Include="System\IO\Packaging\Package.cs" />
28+
<Compile Include="System\IO\Packaging\PackagePart.cs" />
29+
<Compile Include="System\IO\Packaging\PackagePartCollection.cs" />
30+
<Compile Include="System\IO\Packaging\PackageProperties.cs" />
31+
<Compile Include="System\IO\Packaging\PackageRelationship.cs" />
32+
<Compile Include="System\IO\Packaging\PackageRelationshipCollection.cs" />
33+
<Compile Include="System\IO\Packaging\PackageRelationshipSelector.cs" />
34+
<Compile Include="System\IO\Packaging\PackageRelationshipSelectorType.cs" />
35+
<Compile Include="System\IO\Packaging\PackageXmlEnum.cs" />
36+
<Compile Include="System\IO\Packaging\PackageXmlStringTable.cs" />
37+
<Compile Include="System\IO\Packaging\PackagingUtilities.cs" />
38+
<Compile Include="System\IO\Packaging\PackUriHelper.cs" />
39+
<Compile Include="System\IO\Packaging\PartBasedPackageProperties.cs" />
40+
<Compile Include="System\IO\Packaging\TargetMode.cs" />
41+
<Compile Include="System\IO\Packaging\XmlCompatibilityReader.cs" />
42+
<Compile Include="System\IO\Packaging\XmlWrappingReader.cs" />
43+
<Compile Include="System\IO\Packaging\ZipPackage.cs" />
44+
<Compile Include="System\IO\Packaging\ZipPackagePart.cs" />
45+
<Compile Include="System\IO\Packaging\ZipStreamManager.cs" />
46+
<Compile Include="System\IO\Packaging\ZipWrappingStream.cs" />
47+
</ItemGroup>
48+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
49+
</Project>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
//-----------------------------------------------------------------------------
5+
//
6+
// Description:
7+
// CompressionOption enumeration is used as an aggregate mechanism to give users controls
8+
// over Compression features.
9+
//
10+
//-----------------------------------------------------------------------------
11+
12+
namespace System.IO.Packaging
13+
{
14+
/// <summary>
15+
/// This class is used to control Compression for package parts.
16+
/// </summary>
17+
public enum CompressionOption : int
18+
{
19+
/// <summary>
20+
/// Compression is turned off in this mode.
21+
/// </summary>
22+
NotCompressed = -1,
23+
24+
/// <summary>
25+
/// Compression is optimized for a resonable compromise between size and performance.
26+
/// </summary>
27+
Normal = 0,
28+
29+
/// <summary>
30+
/// Compression is optimized for size.
31+
/// </summary>
32+
Maximum = 1,
33+
34+
/// <summary>
35+
/// Compression is optimized for performance.
36+
/// </summary>
37+
Fast = 2,
38+
39+
/// <summary>
40+
/// Compression is optimized for super performance.
41+
/// </summary>
42+
SuperFast = 3,
43+
}
44+
}

0 commit comments

Comments
 (0)