5 writes to Include
Microsoft.DotNet.Build.Tasks.Feed (1)
src\SigningInformationModelFactory.cs (1)
96
parsedFileExtensionSignInfoModel.Add(new FileExtensionSignInfoModel {
Include
= signInfo.ItemSpec, CertificateName = attributes["CertificateName"] });
Microsoft.DotNet.VersionTools.Tests (4)
BuildManifest\ManifestModelTests.cs (4)
51
models.Add(new FileExtensionSignInfoModel() {
Include
= infos[i * 2], CertificateName = infos[i * 2 + 1] });
711
Include
= ".dll",
716
Include
= ".jar",
721
Include
= ".nupkg",
15 references to Include
Microsoft.DotNet.Build.Tasks.Feed.Tests (2)
BuildModelFactoryTests.cs (2)
534
item.
Include
.Should().Be(".dll");
686
item.
Include
.Should().Be(".dll");
Microsoft.DotNet.VersionTools (13)
BuildManifest\Model\SigningInformationModel.cs (5)
40
.OrderBy(fe => fe.
Include
, StringComparer.OrdinalIgnoreCase)
83
nameof(
Include
),
90
get { return Attributes.GetOrDefault(nameof(
Include
)); }
91
set { Attributes[nameof(
Include
)] = value; }
99
public override string ToString() => $"Files \"*{
Include
}\" are signed with {CertificateName}";
BuildManifest\Model\SigningInformationParsingExtensions.cs (8)
36
if (string.IsNullOrWhiteSpace(signInfo.
Include
))
41
string extension = signInfo.
Include
.Equals(".tar.gz", StringComparison.OrdinalIgnoreCase) ? ".tar.gz" : Path.GetExtension(signInfo.
Include
);
42
if (!signInfo.
Include
.Equals(extension))
44
throw new ArgumentException($"Value of FileExtensionSignInfo Include is invalid: '{signInfo.
Include
}' is not returned by Path.GetExtension('{signInfo.
Include
}')");
47
if (!extensionToCertMapping.TryGetValue(signInfo.
Include
, out var hashSet))
50
extensionToCertMapping.Add(signInfo.
Include
, hashSet);