36 references to Name
aspire (11)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (3)
487if (string.IsNullOrWhiteSpace(entry.Name)) 492var destinationPath = GetSafeArchiveDestinationPath(destinationRoot, entry.Name); 516throw new InvalidDataException(string.Format(CultureInfo.InvariantCulture, "Aspire skills archive entry '{0}' has unsupported type '{1}'.", entry.Name, entry.EntryType));
Agents\Hooks\AgentTelemetryCatalog.cs (1)
114var parts = entry.Name.Split('/', StringSplitOptions.RemoveEmptyEntries);
Bundles\BundleService.cs (3)
889var name = entry.Name; 909throw new InvalidOperationException($"Tar entry '{entry.Name}' would extract outside the destination directory."); 943throw new InvalidOperationException($"Symlink '{entry.Name}' targets '{entry.LinkName}' which resolves outside the destination directory.");
Utils\ArchiveHelper.cs (4)
81if (string.IsNullOrEmpty(entry.Name)) 86var fullPath = Path.GetFullPath(Path.Combine(destinationPath, entry.Name)); 92throw new InvalidOperationException($"Tar entry '{entry.Name}' would extract outside the destination directory."); 126throw new InvalidOperationException($"Symlink '{entry.Name}' targets '{entry.LinkName}' which resolves outside the destination directory.");
Aspire.Hosting (10)
Publishing\ContainerImageArchiveRewriter.cs (10)
169var rootEntryName = GetRootEntryName(entry.Name); 175EnsureUniqueNamingEntry(ref sawDockerManifest, entry.Name); 179entry.Name); 182EnsureUniqueNamingEntry(ref sawLegacyRepositories, entry.Name); 186entry.Name); 189EnsureUniqueNamingEntry(ref sawOciIndex, entry.Name); 193entry.Name); 504throw InvalidMetadata(entry.Name, "the entry must be a regular file"); 509throw InvalidMetadata(entry.Name, $"the entry exceeds the {MaxNamingMetadataLength}-byte safety limit"); 512var dataStream = entry.DataStream ?? throw InvalidMetadata(entry.Name, "the entry has no data");
Aspire.Hosting.TestUtilities (4)
Publishing\TestContainerImageArchive.cs (4)
74if (GetRootEntryName(entry.Name) != "manifest.json") 121if (!string.Equals(GetRootEntryName(entry.Name), "layer.tar", StringComparison.Ordinal)) 190if (!string.Equals(entry.Name, entryName, StringComparison.Ordinal)) 214names.Add(entry.Name);
Microsoft.Build.Tasks.Core (1)
Untar.cs (1)
275string entryName = tarEntry.Name;
sdk-tasks (1)
ExtractArchiveToDirectory.cs (1)
124string entryName = tarEntry.Name;
System.Formats.Tar (9)
System\Formats\Tar\PaxTarEntry.cs (1)
117/// <para>Setting properties such as <see cref="TarEntry.Name"/>, <see cref="TarEntry.ModificationTime"/>, <see cref="TarEntry.Uid"/>, <see cref="TarEntry.Gid"/>, <see cref="PosixTarEntry.UserName"/>, <see cref="PosixTarEntry.GroupName"/>, <see cref="TarEntry.LinkName"/>, <see cref="PosixTarEntry.DeviceMajor"/>, or <see cref="PosixTarEntry.DeviceMinor"/> will update the corresponding extended attribute to keep properties and extended attributes synchronized.</para>
System\Formats\Tar\TarEntry.cs (4)
275throw new InvalidOperationException(SR.Format(SR.TarEntryDoesNotSupportDataStream, Name, EntryType)); 315/// <returns>The <see cref="Name"/> of the current entry.</returns> 316public override string ToString() => Name; 369string name = ArchivingUtils.SanitizeEntryFilePath(Name, preserveDriveRoot: true);
System\Formats\Tar\TarHeader.Write.cs (3)
533throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 554throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 607throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
System\Formats\Tar\TarWriter.cs (1)
403throw new IOException(SR.Format(SR.TarStreamSeekabilityUnsupportedCombination, entry.Name));