5 writes to Usages
Microsoft.DotNet.SourceBuild.Tasks (4)
src\UsageReport\UsageData.cs (1)
59
Usages
=
src\UsageReport\ValidateUsageAgainstBaseline.cs (2)
128
used.
Usages
= used.Usages.Distinct().ToArray();
174
actual.
Usages
= actual.Usages.Except(ignoredUsages).ToArray();
src\UsageReport\WritePackageUsageData.cs (1)
247
Usages
= usages.ToArray(),
Microsoft.DotNet.SourceBuild.Tasks.Tests (1)
ValidateUsageAgainstBaselineTests.cs (1)
28
Usages
= ids.Select(SimpleUsage).ToArray()
15 references to Usages
Microsoft.DotNet.SourceBuild.Tasks (12)
src\UsageReport\UsageData.cs (4)
36
Usages
?.Any() != true ? null : new XElement(
37
nameof(
Usages
),
38
Usages
60
(xml.Element(nameof(
Usages
))?.Elements()).NullAsEmpty()
src\UsageReport\ValidateUsageAgainstBaseline.cs (7)
80
used.
Usages
.Select(u => u.GetIdentityWithoutRid()).Distinct(),
81
baseline.
Usages
.Select(u => u.GetIdentityWithoutRid()).Distinct());
99
used.
Usages
122
foreach (var usage in used.
Usages
)
128
used.Usages = used.
Usages
.Distinct().ToArray();
166
var ignoredUsages = actual.
Usages
174
actual.Usages = actual.
Usages
.Except(ignoredUsages).ToArray();
src\UsageReport\WriteUsageReports.cs (1)
109
var annotatedUsages = data.
Usages
.NullAsEmpty()
Microsoft.DotNet.SourceBuild.Tasks.Tests (3)
ValidateUsageAgainstBaselineTests.cs (3)
66
Assert.Empty(data.ActualUsageData.
Usages
);
86
baseline.
Usages
.Skip(1).Select(u => u.PackageIdentity).ToArray(),
87
data.ActualUsageData.
Usages
.Select(u => u.PackageIdentity).ToArray());