16 references to NullAsEmpty
Microsoft.DotNet.SourceBuild.Tasks (16)
src\UsageReport\UsageData.cs (4)
48
(xml.Element(nameof(ProjectDirectories))?.Elements()).
NullAsEmpty
()
52
(xml.Element(nameof(NeverRestoredTarballPrebuilts))?.Elements()).
NullAsEmpty
()
56
(xml.Element(nameof(IgnorePatterns))?.Elements()).
NullAsEmpty
()
60
(xml.Element(nameof(Usages))?.Elements()).
NullAsEmpty
()
src\UsageReport\ValidateUsageAgainstBaseline.cs (1)
160
Regex[] ignoreUsageRegexes = baseline.IgnorePatterns.
NullAsEmpty
()
src\UsageReport\WritePackageUsageData.cs (8)
89
string[] projectDirectoriesOutsideRoot = ProjectDirectories.
NullAsEmpty
()
102
string[] possibleRids = PlatformsRuntimeJsonFiles.
NullAsEmpty
()
109
PackageIdentity[] restored = RestoredPackageFiles.
NullAsEmpty
()
114
PackageIdentity[] tarballPrebuilt = TarballPrebuiltPackageFiles.
NullAsEmpty
()
119
PackageIdentity[] referencePackages = ReferencePackageFiles.
NullAsEmpty
()
124
PackageIdentity[] sourceBuilt = SourceBuiltPackageFiles.
NullAsEmpty
()
131
PackageIdentity[] toCheck = NuGetPackageInfos.
NullAsEmpty
()
143
.Except(IgnoredProjectAssetsJsonFiles.
NullAsEmpty
().Select(GetPathRelativeToRoot))
src\UsageReport\WriteUsageReports.cs (3)
71
foreach (ITaskItem item in ProdConPackageInfos.
NullAsEmpty
())
109
var annotatedUsages = data.Usages.
NullAsEmpty
()
170
var pvpSnapshotFiles = PackageVersionPropsSnapshots.
NullAsEmpty
()