1 write to FullName
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
191
FullName
= entryName;
87 references to FullName
aspire (11)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (4)
532
if (string.IsNullOrWhiteSpace(entry.
FullName
))
537
var destinationPath = GetSafeArchiveDestinationPath(destinationRoot, entry.
FullName
);
538
if (entry.
FullName
.EndsWith("/", StringComparison.Ordinal) || entry.
FullName
.EndsWith("\\", StringComparison.Ordinal))
Packaging\PackageChannel.cs (2)
449
var nuspecEntry = archive.Entries.FirstOrDefault(entry => entry.
FullName
.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase));
754
var nuspecEntry = archive.Entries.FirstOrDefault(entry => entry.
FullName
.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase));
Utils\ArchiveHelper.cs (5)
43
if (string.IsNullOrEmpty(entry.
FullName
))
48
var fullPath = Path.GetFullPath(Path.Combine(destinationPath, entry.
FullName
));
52
throw new InvalidOperationException($"Zip entry '{entry.
FullName
}' would extract outside the destination directory.");
55
if (entry.
FullName
.EndsWith('/') || entry.
FullName
.EndsWith('\\'))
Aspire.Cli.Tests (12)
Commands\ExportCommandTests.cs (11)
69
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
288
var entryNames = archive.Entries.Select(e => e.
FullName
).Order().ToList();
350
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
468
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
526
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
586
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
636
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
678
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
722
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
797
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
844
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(n => n).ToList();
ProfileCaptureServiceTests.cs (1)
341
Assert.Equal("traces/profile.json", entry.
FullName
);
Aspire.Dashboard.Tests (11)
Model\TelemetryExportServiceTests.cs (11)
708
var entryNames = archive.Entries.Select(e => e.
FullName
).OrderBy(e => e).ToList();
720
var resource1LogsEntry = archive.Entries.First(e => e.
FullName
.Contains("structuredlogs") && e.
FullName
.Contains("resource1"));
728
var resource2TracesEntry = archive.Entries.First(e => e.
FullName
.Contains("traces") && e.
FullName
.Contains("resource2"));
736
var resource3MetricsEntry = archive.Entries.First(e => e.
FullName
.Contains("metrics") && e.
FullName
.Contains("resource3"));
780
var entryNames = archive.Entries.Select(e => e.
FullName
).Order().ToList();
827
Assert.Equal("structuredlogs/LargeService.json", logEntry.
FullName
);
878
Assert.Equal("traces/LargeService.json", traceEntry.
FullName
);
939
var entryNames = archive.Entries.Select(e => e.
FullName
).Order().ToList();
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
2139
entry => string.Equals(entry.
FullName
, "META-INF/MANIFEST.MF", StringComparison.OrdinalIgnoreCase));
Aspire.Hosting.Tests (10)
MSBuildTests.cs (10)
271
var nuspecEntry = archive.Entries.Single(entry => entry.
FullName
.EndsWith(".nuspec", StringComparison.Ordinal));
1368
Assert.Contains(archive.Entries, entry => entry.
FullName
== "analyzers/dotnet/cs/Aspire.Hosting.Integration.Analyzers.dll");
1369
Assert.Contains(archive.Entries, entry => entry.
FullName
== "README.md");
1370
Assert.DoesNotContain(archive.Entries, entry => entry.
FullName
.StartsWith("lib/", StringComparison.Ordinal));
1372
var nuspecEntry = archive.Entries.Single(entry => entry.
FullName
.EndsWith(".nuspec", StringComparison.Ordinal));
1397
entry => entry.
FullName
.StartsWith("lib/", StringComparison.Ordinal)
1399
var targetFramework = assemblyEntry.
FullName
.Split('/')[1];
1403
entry => entry.
FullName
== $"buildTransitive/{targetFramework}/Aspire.Hosting.Blazor.targets");
1409
entry => entry.
FullName
== $"buildTransitive/{targetFramework}/Scripts/{scriptName}");
1412
entry => entry.
FullName
== $"lib/{targetFramework}/Scripts/{scriptName}");
Microsoft.Arcade.Common (2)
ZipArchiveManager.cs (2)
38
zip.Entries.FirstOrDefault(e => e.
FullName
== entryName)?.Delete();
53
archive.Entries.FirstOrDefault(e => e.
FullName
== targetFilename)?.Delete();
Microsoft.Build (1)
Logging\BinaryLogger\Postprocessing\ArchiveFile.cs (1)
75
return new ArchiveStream(entry.
FullName
, new StreamReader(entry.Open()));
Microsoft.Build.Tasks.Core (9)
Unzip.cs (9)
185
Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFilter", zipArchiveEntry.
FullName
);
189
AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.
FullName
)).GetCanonicalForm();
213
Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFileMatch", zipArchiveEntry.
FullName
, destinationPath.FullName, nameof(SkipUnchangedFiles), "true");
218
Log.LogErrorFromResources("Unzip.FileComment", zipArchiveEntry.
FullName
, destinationPath.FullName);
241
Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.
FullName
, destinationPath.FullName, e.Message, lockedFileMessage);
248
Log.LogMessageFromResources(MessageImportance.Normal, "Unzip.FileComment", zipArchiveEntry.
FullName
, destinationPath.FullName);
291
Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.
FullName
, destinationPath.FullName, e.Message);
307
result = _includePatterns.All(pattern => !FileMatcher.IsMatch(FileMatcher.Normalize(zipArchiveEntry.
FullName
), pattern));
312
result |= _excludePatterns.Any(pattern => FileMatcher.IsMatch(FileMatcher.Normalize(zipArchiveEntry.
FullName
), pattern));
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
221
archive.Entries.FirstOrDefault(e => e.
FullName
== NuGetUtils.SignaturePartUri)?.Delete();
Microsoft.ML.Core (1)
Data\Repository.cs (1)
476
var path = NormalizeForArchiveEntry(entry.
FullName
);
Microsoft.ML.Ensemble (4)
EntryPoints\CreateEnsemble.cs (4)
334
var entries = zip.Entries.OrderBy(e => e.
FullName
).ToArray();
339
dataZipEntryNames[i] = entries[i].
FullName
;
382
var entries = zip.Entries.OrderBy(e => e.
FullName
).ToArray();
387
ch.Check(dataZipEntryNames[i] == entries[i].
FullName
, errorMsg);
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
64
var versionPath = archive.Entries.First(x => x.
FullName
== versionFileName);
Microsoft.TemplateEngine.Edge (1)
Mount\Archive\ZipFileMountPoint.cs (1)
50
string[] parts = entry.
FullName
.Split('/', '\\');
NuGet.Common (1)
PathUtil\PathUtility.cs (1)
435
Uri.UnescapeDataString(z.
FullName
),
NuGet.Packaging (3)
PackageArchiveReader.cs (1)
298
var packageFileName = entry.
FullName
;
PackageExtraction\ZipArchiveExtensions.cs (2)
22
var entry = zipArchive.Entries.FirstOrDefault(zipEntry => UnescapePath(zipEntry.
FullName
) == path);
33
return zipArchive.Entries.Select(e => UnescapePath(e.
FullName
));
sdk-tasks (3)
ExtractArchiveToDirectory.cs (3)
91
if (ShouldExtractItem(entry.
FullName
))
93
string destinationPath = Path.GetFullPath(Path.Combine(DestinationDirectory, entry.
FullName
));
99
Log.LogMessage(Path.GetDirectoryName(entry.
FullName
));
System.IO.Compression (6)
System\IO\Compression\ZipArchive.cs (2)
524
_entriesDictionary.TryAdd(entry.
FullName
, entry);
541
_entriesDictionary.Remove(entry.
FullName
);
System\IO\Compression\ZipArchiveEntry.cs (4)
324
ArgumentNullException.ThrowIfNull(value, nameof(
FullName
));
345
/// Returns the relative path of the entry in the Zip archive, equivalent to <see cref="
FullName
"/>.
347
public override string ToString() =>
FullName
;
405
public string Name => ParseFileName(
FullName
, _versionMadeByPlatform);
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
193
string sanitizedEntryPath = ArchivingUtils.SanitizeEntryFilePath(source.
FullName
);
System.IO.Packaging (8)
System\IO\Packaging\ZipPackage.cs (7)
192
if (IsZipItemValidOpcPartOrPiece(zipArchiveEntry.
FullName
))
214
Uri partUri = new Uri(GetOpcNameFromZipItemName(zipArchiveEntry.
FullName
), UriKind.Relative);
231
_ignoredItemHelper.AddItemForAtomicPart(validatedPartUri, zipArchiveEntry.
FullName
);
1054
if (zipFileInfo.
FullName
.StartsWith(ContentTypesFileUpperInvariant, StringComparison.OrdinalIgnoreCase))
1057
if (zipFileInfo.
FullName
.Length == ContentTypeFileName.Length)
1396
AddItem(pieceInfo.PartUri, pieceInfo.NormalizedPrefixName, pieceInfo.ZipArchiveEntry.
FullName
);
1420
zipFileInfoNameList.Add(pieces[i].ZipArchiveEntry.
FullName
);
System\IO\Packaging\ZipPackagePartPiece.cs (1)
31
bool success = TryParseName(zipArchiveEntry.
FullName
, out PackUriHelper.ValidatedPartUri? partUri, out string? prefixName, out int pieceNumber, out bool isLastPiece);