39 references to Name
aspire (7)
Bundles\BundleService.cs (3)
896
var name = entry.
Name
;
916
throw new InvalidOperationException($"Tar entry '{entry.
Name
}' would extract outside the destination directory.");
950
throw new InvalidOperationException($"Symlink '{entry.
Name
}' targets '{entry.LinkName}' which resolves outside the destination directory.");
Utils\ArchiveHelper.cs (4)
81
if (string.IsNullOrEmpty(entry.
Name
))
86
var fullPath = Path.GetFullPath(Path.Combine(destinationPath, entry.
Name
));
92
throw new InvalidOperationException($"Tar entry '{entry.
Name
}' would extract outside the destination directory.");
126
throw new InvalidOperationException($"Symlink '{entry.
Name
}' targets '{entry.LinkName}' which resolves outside the destination directory.");
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
1179
var match = stablePackageRegex.Match(entry.
Name
);
Aspire.Hosting (10)
Publishing\ContainerImageArchiveRewriter.cs (10)
169
var rootEntryName = GetRootEntryName(entry.
Name
);
175
EnsureUniqueNamingEntry(ref sawDockerManifest, entry.
Name
);
179
entry.
Name
);
182
EnsureUniqueNamingEntry(ref sawLegacyRepositories, entry.
Name
);
186
entry.
Name
);
189
EnsureUniqueNamingEntry(ref sawOciIndex, entry.
Name
);
193
entry.
Name
);
504
throw InvalidMetadata(entry.
Name
, "the entry must be a regular file");
509
throw InvalidMetadata(entry.
Name
, $"the entry exceeds the {MaxNamingMetadataLength}-byte safety limit");
512
var dataStream = entry.DataStream ?? throw InvalidMetadata(entry.
Name
, "the entry has no data");
Aspire.Hosting.TestUtilities (4)
Publishing\TestContainerImageArchive.cs (4)
74
if (GetRootEntryName(entry.
Name
) != "manifest.json")
121
if (!string.Equals(GetRootEntryName(entry.
Name
), "layer.tar", StringComparison.Ordinal))
190
if (!string.Equals(entry.
Name
, entryName, StringComparison.Ordinal))
214
names.Add(entry.
Name
);
Infrastructure.Tests (6)
Pipelines\TrayBundleTests.cs (6)
79
names.Add(entry.
Name
);
80
var original = Path.Combine(source, Path.GetFileName(entry.
Name
));
186
Assert.StartsWith(prefix, entry.
Name
);
187
var relativePath = entry.
Name
[prefix.Length..];
292
files.Add(entry.
Name
);
295
Assert.Equal(File.ReadAllBytes(Path.Combine(source, Path.GetFileName(entry.
Name
))), content.ToArray());
Microsoft.Build.Tasks.Core (1)
Untar.cs (1)
280
string entryName = tarEntry.
Name
;
sdk-tasks (1)
ExtractArchiveToDirectory.cs (1)
124
string 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)
276
throw new InvalidOperationException(SR.Format(SR.TarEntryDoesNotSupportDataStream,
Name
, EntryType));
316
/// <returns>The <see cref="
Name
"/> of the current entry.</returns>
317
public override string ToString() =>
Name
;
389
string name = ArchivingUtils.SanitizeEntryFilePath(
Name
, preserveDriveRoot: true);
System\Formats\Tar\TarHeader.Write.cs (3)
533
throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.
Name
)), ArgNameEntry);
554
throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.
Name
)), ArgNameEntry);
607
throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.
Name
)), ArgNameEntry);
System\Formats\Tar\TarWriter.cs (1)
403
throw new IOException(SR.Format(SR.TarStreamSeekabilityUnsupportedCombination, entry.
Name
));