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