1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <Project ToolsVersion =" 4.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3+ <PropertyGroup >
4+ <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
5+ <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
6+ <ProductVersion >9.0.30729</ProductVersion >
7+ <SchemaVersion >2.0</SchemaVersion >
8+ <ProjectGuid >{4960DD14-3431-47EC-B9D9-9D2730A98DC3}</ProjectGuid >
9+ <OutputType >Library</OutputType >
10+ <AppDesignerFolder >Properties</AppDesignerFolder >
11+ <RootNamespace >SevenZip</RootNamespace >
12+ <AssemblyName >SevenZipSharp</AssemblyName >
13+ <TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
14+ <FileAlignment >512</FileAlignment >
15+ <SignAssembly >false</SignAssembly >
16+ <AssemblyOriginatorKeyFile >SevenZip.snk</AssemblyOriginatorKeyFile >
17+ <FileUpgradeFlags >
18+ </FileUpgradeFlags >
19+ <UpgradeBackupLocation >
20+ </UpgradeBackupLocation >
21+ <OldToolsVersion >3.5</OldToolsVersion >
22+ <TargetFrameworkProfile />
23+ <PublishUrl >publish\</PublishUrl >
24+ <Install >true</Install >
25+ <InstallFrom >Disk</InstallFrom >
26+ <UpdateEnabled >false</UpdateEnabled >
27+ <UpdateMode >Foreground</UpdateMode >
28+ <UpdateInterval >7</UpdateInterval >
29+ <UpdateIntervalUnits >Days</UpdateIntervalUnits >
30+ <UpdatePeriodically >false</UpdatePeriodically >
31+ <UpdateRequired >false</UpdateRequired >
32+ <MapFileExtensions >true</MapFileExtensions >
33+ <ApplicationRevision >0</ApplicationRevision >
34+ <ApplicationVersion >1.0.0.%2a</ApplicationVersion >
35+ <IsWebBootstrapper >false</IsWebBootstrapper >
36+ <UseApplicationTrust >false</UseApplicationTrust >
37+ <BootstrapperEnabled >true</BootstrapperEnabled >
38+ </PropertyGroup >
39+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
40+ <DebugSymbols >true</DebugSymbols >
41+ <DebugType >full</DebugType >
42+ <Optimize >false</Optimize >
43+ <OutputPath >bin\Debug\</OutputPath >
44+ <DefineConstants >TRACE;DEBUG;UNMANAGED, COMPRESS, LZMA_STREAM, CS4</DefineConstants >
45+ <ErrorReport >prompt</ErrorReport >
46+ <WarningLevel >4</WarningLevel >
47+ <RegisterForComInterop >false</RegisterForComInterop >
48+ <DocumentationFile >bin\Debug\SevenZipSharp.xml</DocumentationFile >
49+ <RunCodeAnalysis >true</RunCodeAnalysis >
50+ <Prefer32Bit >false</Prefer32Bit >
51+ </PropertyGroup >
52+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
53+ <DebugType >pdbonly</DebugType >
54+ <Optimize >true</Optimize >
55+ <OutputPath >bin\Release\</OutputPath >
56+ <DefineConstants >TRACE;UNMANAGED, COMPRESS, LZMA_STREAM, CS4</DefineConstants >
57+ <ErrorReport >prompt</ErrorReport >
58+ <WarningLevel >4</WarningLevel >
59+ <RegisterForComInterop >false</RegisterForComInterop >
60+ <DocumentationFile >bin\Release\SevenZipSharp.xml</DocumentationFile >
61+ <Prefer32Bit >false</Prefer32Bit >
62+ </PropertyGroup >
63+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Deploy|AnyCPU' " >
64+ <OutputPath >bin\Deploy\</OutputPath >
65+ <DefineConstants >TRACE;UNMANAGED, COMPRESS, LZMA_STREAM</DefineConstants >
66+ <DocumentationFile >bin\Release\SevenZip.XML</DocumentationFile >
67+ <Optimize >true</Optimize >
68+ <RegisterForComInterop >false</RegisterForComInterop >
69+ <DebugType >pdbonly</DebugType >
70+ <PlatformTarget >AnyCPU</PlatformTarget >
71+ <CodeAnalysisUseTypeNameInSuppression >true</CodeAnalysisUseTypeNameInSuppression >
72+ <CodeAnalysisModuleSuppressionsFile >GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile >
73+ <ErrorReport >prompt</ErrorReport >
74+ <Prefer32Bit >false</Prefer32Bit >
75+ </PropertyGroup >
76+ <ItemGroup >
77+ <Reference Include =" System" />
78+ <Reference Include =" System.configuration" />
79+ <Reference Include =" System.Data" />
80+ <Reference Include =" System.Xml" />
81+ <Reference Include =" WindowsBase" />
82+ </ItemGroup >
83+ <ItemGroup >
84+ <Compile Include =" ArchiveEmulationStreamProxy.cs" />
85+ <Compile Include =" ArchiveExtractCallback.cs" />
86+ <Compile Include =" ArchiveOpenCallback.cs" />
87+ <Compile Include =" ArchiveUpdateCallback.cs" />
88+ <Compile Include =" Com.cs" />
89+ <Compile Include =" EventArgs.cs" />
90+ <Compile Include =" Exceptions.cs" />
91+ <Compile Include =" FileSignatureChecker.cs" />
92+ <Compile Include =" Formats.cs" />
93+ <Compile Include =" LibraryFeature.cs" />
94+ <Compile Include =" LibraryManager.cs" />
95+ <Compile Include =" Common.cs" />
96+ <Compile Include =" LzmaDecodeStream.cs" />
97+ <Compile Include =" LzmaEncodeStream.cs" />
98+ <Compile Include =" LzmaProgressCallback.cs" />
99+ <Compile Include =" NativeMethods.cs" />
100+ <Compile Include =" Properties\AssemblyInfo.cs" />
101+ <Compile Include =" sdk\Common\CRC.cs" />
102+ <Compile Include =" sdk\Common\InBuffer.cs" />
103+ <Compile Include =" sdk\Common\OutBuffer.cs" />
104+ <Compile Include =" sdk\Compress\LZMA\LzmaBase.cs" />
105+ <Compile Include =" sdk\Compress\LZMA\LzmaDecoder.cs" />
106+ <Compile Include =" sdk\Compress\LZMA\LzmaEncoder.cs" />
107+ <Compile Include =" sdk\Compress\LZ\IMatchFinder.cs" />
108+ <Compile Include =" sdk\Compress\LZ\LzBinTree.cs" />
109+ <Compile Include =" sdk\Compress\LZ\LzInWindow.cs" />
110+ <Compile Include =" sdk\Compress\LZ\LzOutWindow.cs" />
111+ <Compile Include =" sdk\Compress\RangeCoder\RangeCoder.cs" />
112+ <Compile Include =" sdk\Compress\RangeCoder\RangeCoderBit.cs" />
113+ <Compile Include =" sdk\Compress\RangeCoder\RangeCoderBitTree.cs" />
114+ <Compile Include =" sdk\ICoder.cs" />
115+ <Compile Include =" SevenZipCompressor.cs" />
116+ <Compile Include =" SevenZipCompressorAsynchronous.cs" />
117+ <Compile Include =" SevenZipExtractor.cs" />
118+ <Compile Include =" SevenZipExtractorAsynchronous.cs" />
119+ <Compile Include =" SevenZipSfx.cs" />
120+ <Compile Include =" StreamWrappers.cs" />
121+ </ItemGroup >
122+ <ItemGroup >
123+ <None Include =" ClassDiagram.cd" />
124+ <None Include =" sfx\7zS.sfx" />
125+ <None Include =" sfx\7zxSD_All.sfx" />
126+ <None Include =" sfx\7zxSD_PPMd_x64.sfx" />
127+ </ItemGroup >
128+ <ItemGroup >
129+ <EmbeddedResource Include =" sfx\Configs.xml" />
130+ </ItemGroup >
131+ <ItemGroup >
132+ <Content Include =" 7z.dll" />
133+ <Content Include =" 7z64.dll" />
134+ <Content Include =" arch\Test.txt" />
135+ <Content Include =" sfx\Configs.xslt" />
136+ </ItemGroup >
137+ <ItemGroup >
138+ <None Include =" sfx\7zSD.sfx" />
139+ <None Include =" sfx\7zxSD_All_x64.sfx" />
140+ <None Include =" sfx\7zxSD_Deflate.sfx" />
141+ <None Include =" sfx\7zxSD_Deflate_x64.sfx" />
142+ <None Include =" sfx\7zxSD_LZMA.sfx" />
143+ <None Include =" sfx\7zxSD_LZMA2.sfx" />
144+ <None Include =" sfx\7zxSD_LZMA2_x64.sfx" />
145+ <None Include =" sfx\7zxSD_LZMA_x64.sfx" />
146+ <None Include =" sfx\7zxSD_PPMd.sfx" />
147+ <EmbeddedResource Include =" sfx\Configs.xsd" />
148+ </ItemGroup >
149+ <ItemGroup >
150+ <EmbeddedResource Include =" arch\Test.bzip2.7z" />
151+ <EmbeddedResource Include =" arch\Test.lzma.7z" />
152+ <EmbeddedResource Include =" arch\Test.lzma2.7z" />
153+ <EmbeddedResource Include =" arch\Test.ppmd.7z" />
154+ <EmbeddedResource Include =" arch\Test.rar" />
155+ <EmbeddedResource Include =" arch\Test.tar" />
156+ <EmbeddedResource Include =" arch\Test.txt.bz2" />
157+ <EmbeddedResource Include =" arch\Test.txt.gz" />
158+ <EmbeddedResource Include =" arch\Test.txt.xz" />
159+ <EmbeddedResource Include =" arch\Test.zip" />
160+ <None Include =" SevenZip.snk" />
161+ <None Include =" sfx\7z.sfx" />
162+ <None Include =" sfx\7zCon.sfx" />
163+ </ItemGroup >
164+ <ItemGroup >
165+ <BootstrapperPackage Include =" Microsoft.Net.Client.3.5" >
166+ <Visible >False</Visible >
167+ <ProductName >.NET Framework 3.5 SP1 Client Profile</ProductName >
168+ <Install >false</Install >
169+ </BootstrapperPackage >
170+ <BootstrapperPackage Include =" Microsoft.Net.Framework.3.5.SP1" >
171+ <Visible >False</Visible >
172+ <ProductName >.NET Framework 3.5 SP1</ProductName >
173+ <Install >true</Install >
174+ </BootstrapperPackage >
175+ <BootstrapperPackage Include =" Microsoft.Windows.Installer.3.1" >
176+ <Visible >False</Visible >
177+ <ProductName >Windows Installer 3.1</ProductName >
178+ <Install >true</Install >
179+ </BootstrapperPackage >
180+ </ItemGroup >
181+ <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
182+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
183+ Other similar extension points exist, see Microsoft.Common.targets.
184+ <Target Name="BeforeBuild">
185+ </Target>
186+ <Target Name="AfterBuild">
187+ </Target>
188+ -->
189+ <PropertyGroup >
190+ <PostBuildEvent >@echo off
191+ set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
192+ reg.exe Query %25RegQry%25 > checkOS.txt
193+ find /i "x86" < checkOS.txt > nul
194+
195+ if %25ERRORLEVEL%25 == 0 ( goto 32bit ) else ( goto 64bit )
196+
197+ :32bit
198+ echo Copying the 32-bit 7-Zip DLL...
199+ copy /B /Y $(ProjectDir)7z.dll $(TargetDir)7z.dll
200+ goto exit
201+
202+ :64bit
203+ echo Copying the 64-bit 7-Zip DLL...
204+ copy /B /Y $(ProjectDir)7z64.dll $(TargetDir)7z.dll
205+ goto exit
206+
207+ :exit
208+ del /Q checkOS.txt</PostBuildEvent >
209+ </PropertyGroup >
210+ </Project >
0 commit comments