32 instantiations of ZipArchive
Microsoft.Arcade.Common (2)
ZipArchiveManager.cs (2)
33using ZipArchive zip = new(fs, archiveExists ? ZipArchiveMode.Update : ZipArchiveMode.Create, false); 50using ZipArchive archive = new(archiveStream, ZipArchiveMode.Update);
Microsoft.Build (2)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
396using var zipArchive = new ZipArchive(embeddedStream, ZipArchiveMode.Read);
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
83_zipArchive = new ZipArchive(_fileStream, ZipArchiveMode.Create);
Microsoft.Build.Engine.UnitTests (2)
BinaryLogger_Tests.cs (2)
461using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read); 521using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read);
Microsoft.Build.Tasks.Core (1)
Unzip.cs (1)
120using (ZipArchive zipArchive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: false))
Microsoft.Build.Tasks.UnitTests (4)
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (2)
68using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read); 120using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read);
ZipDirectory_Tests.cs (2)
47using (ZipArchive archive = new ZipArchive(stream, ZipArchiveMode.Read)) 89using (ZipArchive archive = new ZipArchive(stream, ZipArchiveMode.Read))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
99using (var archive = new ZipArchive(File.Open(vsixPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
OptProf\GenerateTrainingInputFilesTests.cs (1)
122using (var archive = new ZipArchive(fileStream, ZipArchiveMode.Create))
Microsoft.DotNet.Helix.JobSender (3)
Payloads\AdhocPayload.cs (1)
34using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, true))
Payloads\DirectoryPayload.cs (1)
56using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, true))
Payloads\SingleFilePayload.cs (1)
38using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, true))
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
232using (var archive = new ZipArchive(File.Open(tempPackagePath, FileMode.Open, FileAccess.ReadWrite), ZipArchiveMode.Update))
Microsoft.DotNet.NuGetRepack.Tests (2)
ReplacePackagePartsTests.cs (1)
43using (var archive = new ZipArchive(File.Open(task.NewPackage, FileMode.Open, FileAccess.Read), ZipArchiveMode.Read))
VersionUpdaterTests.cs (1)
23using (var package = new ZipArchive(new MemoryStream(packageBytes), ZipArchiveMode.Read))
Microsoft.DotNet.SignTool (2)
src\ZipData.cs (2)
140using var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false); 166using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Update))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
152using (var projectAssetArchive = new ZipArchive(
Microsoft.DotNet.VersionTools (2)
Automation\NupkgInfoFactory.cs (1)
37ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
Dependencies\Submodule\IndicatorPackageSubmoduleUpdater.cs (1)
99return new ZipArchive(nupkgStream);
System.IO.Compression (2)
System\IO\Compression\ZipArchive.cs (1)
217/// The comment encoding is determined by the <c>entryNameEncoding</c> parameter of the <see cref="ZipArchive(Stream,ZipArchiveMode,bool,Encoding?)"/> constructor.
System\IO\Compression\ZipArchiveEntry.cs (1)
197///The comment encoding is determined by the <c>entryNameEncoding</c> parameter of the <see cref="ZipArchive(Stream,ZipArchiveMode,bool,Encoding?)"/> constructor.
System.IO.Compression.ZipFile (3)
System\IO\Compression\ZipFile.Create.cs (2)
185return new ZipArchive(fs, mode, leaveOpen: false, entryNameEncoding: entryNameEncoding); 466using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding);
System\IO\Compression\ZipFile.Extract.cs (1)
328using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding);
System.IO.Packaging (2)
System\IO\Packaging\ZipPackage.cs (2)
261zipArchive = new ZipArchive(_containerStream, zipArchiveMode, true); 328zipArchive = new ZipArchive(s, zipArchiveMode, true);
TestExclusionListTasks (1)
PatchExclusionListInApks.cs (1)
47using ZipArchive assetsArchive = new ZipArchive(assetsZipEntry.Open(), ZipArchiveMode.Update);
71 references to ZipArchive
Microsoft.Arcade.Common (4)
IZipArchiveManager.cs (1)
17ZipArchive OpenArchive(string archivePath, ZipArchiveMode mode);
ZipArchiveManager.cs (3)
15public ZipArchive OpenArchive(string archivePath, ZipArchiveMode mode) 33using ZipArchive zip = new(fs, archiveExists ? ZipArchiveMode.Update : ZipArchiveMode.Create, false); 50using ZipArchive archive = new(archiveStream, ZipArchiveMode.Update);
Microsoft.AspNetCore.App.UnitTests (2)
SharedFxTests.cs (1)
330ZipArchive archive = ZipFile.OpenRead(sharedFxPath);
TargetingPackTests.cs (1)
372ZipArchive archive = ZipFile.OpenRead(targetingPackPath);
Microsoft.Build (2)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
396using var zipArchive = new ZipArchive(embeddedStream, ZipArchiveMode.Read);
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
26private ZipArchive? _zipArchive;
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
2491using ZipArchive archive = ZipFile.OpenRead($"{binLogLocation}/replay.ProjectImports.zip");
Microsoft.Build.Engine.UnitTests (2)
BinaryLogger_Tests.cs (2)
461using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read); 521using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read);
Microsoft.Build.Tasks.Core (3)
Unzip.cs (3)
120using (ZipArchive zipArchive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: false)) 159/// <param name="sourceArchive">The <see cref="ZipArchive"/> containing the files to extract.</param> 161private void Extract(ZipArchive sourceArchive, DirectoryInfo destinationDirectory)
Microsoft.Build.Tasks.UnitTests (4)
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (2)
68using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read); 120using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read);
ZipDirectory_Tests.cs (2)
47using (ZipArchive archive = new ZipArchive(stream, ZipArchiveMode.Read)) 89using (ZipArchive archive = new ZipArchive(stream, ZipArchiveMode.Read))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
99using (var archive = new ZipArchive(File.Open(vsixPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
OptProf\GenerateTrainingInputFilesTests.cs (1)
122using (var archive = new ZipArchive(fileStream, ZipArchiveMode.Create))
Microsoft.DotNet.Helix.JobSender (3)
Payloads\AdhocPayload.cs (1)
34using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, true))
Payloads\DirectoryPayload.cs (1)
56using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, true))
Payloads\SingleFilePayload.cs (1)
38using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, true))
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
124using ZipArchive zipArchive = _zipArchiveManager.OpenArchive(archivePath, ZipArchiveMode.Update);
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
232using (var archive = new ZipArchive(File.Open(tempPackagePath, FileMode.Open, FileAccess.ReadWrite), ZipArchiveMode.Update))
Microsoft.DotNet.NuGetRepack.Tests (2)
ReplacePackagePartsTests.cs (1)
43using (var archive = new ZipArchive(File.Open(task.NewPackage, FileMode.Open, FileAccess.Read), ZipArchiveMode.Read))
VersionUpdaterTests.cs (1)
23using (var package = new ZipArchive(new MemoryStream(packageBytes), ZipArchiveMode.Read))
Microsoft.DotNet.SignCheckLibrary (7)
Verification\ArchiveVerifier.cs (1)
28using (ZipArchive zipArchive = ZipFile.OpenRead(svr.FullPath))
Verification\Jar\JarFile.cs (2)
97using (ZipArchive jarArchive = ZipFile.OpenRead(ArchivePath)) 177using (ZipArchive archive = ZipFile.Open(ArchivePath, ZipArchiveMode.Read))
Verification\Jar\JarManifestFile.cs (1)
41using (ZipArchive archive = ZipFile.Open(ArchivePath, ZipArchiveMode.Read))
Verification\Jar\JarManifestFileBase.cs (1)
93using (ZipArchive archive = ZipFile.Open(ArchivePath, ZipArchiveMode.Read))
Verification\Jar\JarUtils.cs (1)
25using (ZipArchive archive = ZipFile.Open(archivePath, ZipArchiveMode.Read))
Verification\SignatureVerificationManager.cs (1)
232using (ZipArchive zipArchive = ZipFile.OpenRead(path))
Microsoft.DotNet.SignTool (2)
src\ZipData.cs (2)
140using var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false); 166using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Update))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
152using (var projectAssetArchive = new ZipArchive(
Microsoft.DotNet.VersionTools (3)
Automation\NupkgInfoFactory.cs (1)
37ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
Dependencies\Submodule\IndicatorPackageSubmoduleUpdater.cs (2)
56using (ZipArchive archive = DownloadPackageAsync(info, package).Result) 83protected async Task<ZipArchive> DownloadPackageAsync(BuildDependencyInfo info, PackageIdentity package)
netstandard (1)
netstandard.cs (1)
895[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Compression.ZipArchive))]
System.IO.Compression (5)
System\IO\Compression\ZipArchiveEntry.cs (5)
19private ZipArchive _archive; 50internal ZipArchiveEntry(ZipArchive archive, ZipCentralDirectoryFileHeader cd) 93internal ZipArchiveEntry(ZipArchive archive, string entryName, CompressionLevel compressionLevel) 105internal ZipArchiveEntry(ZipArchive archive, string entryName) 156public ZipArchive Archive => _archive;
System.IO.Compression.ZipFile (13)
System\IO\Compression\ZipFile.Create.cs (6)
31public static ZipArchive OpenRead(string archiveFileName) => Open(archiveFileName, ZipArchiveMode.Read); 68public static ZipArchive Open(string archiveFileName, ZipArchiveMode mode) => Open(archiveFileName, mode, entryNameEncoding: null); 144public static ZipArchive Open(string archiveFileName, ZipArchiveMode mode, Encoding? entryNameEncoding) 445using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding); 466using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding); 470private static void CreateZipArchiveFromDirectory(string sourceDirectoryName, ZipArchive archive,
System\IO\Compression\ZipFile.Extract.cs (2)
185using (ZipArchive archive = Open(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding)) 328using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (3)
44public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, string sourceFileName, string entryName) => 76public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, 80internal static ZipArchiveEntry DoCreateEntryFromFile(this ZipArchive destination,
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
37public static void ExtractToDirectory(this ZipArchive source, string destinationDirectoryName) => 68public static void ExtractToDirectory(this ZipArchive source, string destinationDirectoryName, bool overwriteFiles)
System.IO.Packaging (10)
System\IO\Packaging\ZipPackage.cs (6)
244ZipArchive? zipArchive = null; 286ZipArchive? zipArchive = null; 472private readonly ZipArchive _zipArchive; 534internal ContentTypeHelper(ZipArchive zipArchive, FileMode packageFileMode, FileAccess packageFileAccess, ZipStreamManager zipStreamManager) 655var thisArchive = _contentTypeZipArchiveEntry.Archive; 960private readonly ZipArchive _zipArchive;
System\IO\Packaging\ZipPackagePart.cs (2)
65ZipArchive zipArchive, 100private readonly ZipArchive _zipArchive;
System\IO\Packaging\ZipStreamManager.cs (2)
14private readonly ZipArchive _zipArchive; 18public ZipStreamManager(ZipArchive zipArchive, FileMode packageFileMode, FileAccess packageFileAccess)
TestExclusionListTasks (2)
PatchExclusionListInApks.cs (2)
44using (ZipArchive apkArchive = ZipFile.Open(apkPath, ZipArchiveMode.Update)) 47using ZipArchive assetsArchive = new ZipArchive(assetsZipEntry.Open(), ZipArchiveMode.Update);