34 references to Read
BuildBoss (1)
OptProfCheckerUtil.cs (1)
103using (var archive = new ZipArchive(File.Open(vsixFullPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
403using var zipArchive = new ZipArchive(embeddedStream, ZipArchiveMode.Read);
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.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 (4)
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))
Microsoft.DotNet.SignTool (1)
src\ZipData.cs (1)
140using var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false);
Microsoft.DotNet.VersionTools (1)
Automation\NupkgInfoFactory.cs (1)
37ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
Microsoft.ML.Core (1)
Data\Repository.cs (1)
462_archive = new ZipArchive(stream, ZipArchiveMode.Read, true);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1058using (var zip = new ZipArchive(strm, ZipArchiveMode.Read))
System.IO.Compression (7)
System\IO\Compression\ZipArchive.cs (5)
45public ZipArchive(Stream stream) : this(stream, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null) { } 138case ZipArchiveMode.Read: 183case ZipArchiveMode.Read: 305case ZipArchiveMode.Read: 396if (_mode == ZipArchiveMode.Read)
System\IO\Compression\ZipArchiveEntry.cs (2)
268if (_archive.Mode == ZipArchiveMode.Read) 335case ZipArchiveMode.Read:
System.IO.Compression.ZipFile (4)
System\IO\Compression\ZipFile.Create.cs (2)
31public static ZipArchive OpenRead(string archiveFileName) => Open(archiveFileName, ZipArchiveMode.Read); 154case ZipArchiveMode.Read:
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 (3)
System\IO\Packaging\ZipPackage.cs (3)
322zipArchiveMode = ZipArchiveMode.Read; 392zipArchiveMode = ZipArchiveMode.Read; 783if (_zipArchive.Mode == ZipArchiveMode.Read || _zipArchive.Mode == ZipArchiveMode.Update)