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)
160Regex[] ignoreUsageRegexes = baseline.IgnorePatterns.NullAsEmpty()
src\UsageReport\WritePackageUsageData.cs (8)
89string[] projectDirectoriesOutsideRoot = ProjectDirectories.NullAsEmpty() 102string[] possibleRids = PlatformsRuntimeJsonFiles.NullAsEmpty() 109PackageIdentity[] restored = RestoredPackageFiles.NullAsEmpty() 114PackageIdentity[] tarballPrebuilt = TarballPrebuiltPackageFiles.NullAsEmpty() 119PackageIdentity[] referencePackages = ReferencePackageFiles.NullAsEmpty() 124PackageIdentity[] sourceBuilt = SourceBuiltPackageFiles.NullAsEmpty() 131PackageIdentity[] toCheck = NuGetPackageInfos.NullAsEmpty() 143.Except(IgnoredProjectAssetsJsonFiles.NullAsEmpty().Select(GetPathRelativeToRoot))
src\UsageReport\WriteUsageReports.cs (3)
71foreach (ITaskItem item in ProdConPackageInfos.NullAsEmpty()) 109var annotatedUsages = data.Usages.NullAsEmpty() 170var pvpSnapshotFiles = PackageVersionPropsSnapshots.NullAsEmpty()