67 references to ZipArchiveMode
BuildBoss (1)
OptProfCheckerUtil.cs (1)
101using (var archive = new ZipArchive(File.Open(vsixFullPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.Arcade.Common (6)
IZipArchiveManager.cs (1)
17ZipArchive OpenArchive(string archivePath, ZipArchiveMode mode);
NupkgInfoFactory.cs (1)
32ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
ZipArchiveManager.cs (4)
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.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.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
273using ZipArchive archive = ZipFile.Open(packagePath, ZipArchiveMode.Read);
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 (5)
Verification\Jar\JarFile.cs (1)
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\ZipVerifier.cs (1)
23using (var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false))
Microsoft.DotNet.SignTool (4)
src\SignTool.cs (1)
94using (var archive = ZipFile.Open(zipFilePath, ZipArchiveMode.Create))
src\VerifySignatures.cs (1)
172using var archive = new ZipArchive(File.OpenRead(filePath), ZipArchiveMode.Read, leaveOpen: false);
src\ZipData.cs (2)
195using (var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false)) 210using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Update))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
157ZipArchiveMode.Create))
Microsoft.ML.Core (2)
Data\Repository.cs (2)
306_archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true); 462_archive = new ZipArchive(stream, ZipArchiveMode.Read, true);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1058using (var zip = new ZipArchive(strm, ZipArchiveMode.Read))
netstandard (1)
netstandard.cs (1)
897[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Compression.ZipArchiveMode))]
System.IO.Compression (5)
artifacts\obj\System.IO.Compression\Debug\net10.0\System.IO.Compression.notsupported.cs (5)
96public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); } 97public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); } 98public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen, System.Text.Encoding? entryNameEncoding) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); } 102public System.IO.Compression.ZipArchiveMode Mode { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); } } 103public static System.Threading.Tasks.Task<System.IO.Compression.ZipArchive> CreateAsync(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen, System.Text.Encoding? entryNameEncoding, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); }
System.IO.Compression.ZipFile (18)
System\IO\Compression\ZipFile.Create.Async.cs (5)
35public static Task<ZipArchive> OpenReadAsync(string archiveFileName, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, ZipArchiveMode.Read, cancellationToken); 74public static Task<ZipArchive> OpenAsync(string archiveFileName, ZipArchiveMode mode, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, mode, entryNameEncoding: null, cancellationToken); 152public static async Task<ZipArchive> OpenAsync(string archiveFileName, ZipArchiveMode mode, Encoding? entryNameEncoding, CancellationToken cancellationToken = default) 437ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding, cancellationToken).ConfigureAwait(false); 451ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Create.cs (9)
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) 413using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding); 422using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding); 464private static FileStream GetFileStreamForOpen(ZipArchiveMode mode, string archiveFileName, bool useAsync) 470ZipArchiveMode.Read => (FileMode.Open, FileAccess.Read, FileShare.Read), 471ZipArchiveMode.Create => (FileMode.CreateNew, FileAccess.Write, FileShare.None), 472ZipArchiveMode.Update => (FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None),
System\IO\Compression\ZipFile.Extract.Async.cs (2)
197ZipArchive archive = await OpenAsync(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding, cancellationToken).ConfigureAwait(false); 351ZipArchive archive = await ZipArchive.CreateAsync(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
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.Packaging (13)
System\IO\Packaging\ZipPackage.cs (12)
320ZipArchiveMode zipArchiveMode = ZipArchiveMode.Update; 322zipArchiveMode = ZipArchiveMode.Read; 324zipArchiveMode = ZipArchiveMode.Create; 326zipArchiveMode = ZipArchiveMode.Update; 390ZipArchiveMode zipArchiveMode = ZipArchiveMode.Update; 392zipArchiveMode = ZipArchiveMode.Read; 394zipArchiveMode = ZipArchiveMode.Create; 396zipArchiveMode = ZipArchiveMode.Update; 783if (_zipArchive.Mode == ZipArchiveMode.Read || _zipArchive.Mode == ZipArchiveMode.Update)
System\IO\Packaging\ZipPackagePart.cs (1)
33if (streamFileMode == FileMode.Create && _zipArchiveEntry.Archive.Mode != ZipArchiveMode.Create)