28 references to NullAsEmpty
Microsoft.DotNet.Build.Tasks.Packaging (28)
ApplyBaseLine.cs (1)
62foreach (var baseLinePackage in BaseLinePackages.NullAsEmpty())
ApplyPreReleaseSuffix.cs (1)
120foreach (var stablePackage in StablePackages.NullAsEmpty())
FilterUnknownPackages.cs (1)
46var baseLinePackageIds = new HashSet<string>(BaseLinePackages.NullAsEmpty().Select(b => b.ItemSpec));
GenerateNuSpec.cs (4)
256from f in Files.NullAsEmpty() 273return (from fr in FrameworkReferences.NullAsEmpty() 298var dependencies = from d in Dependencies.NullAsEmpty() 332var references = from r in References.NullAsEmpty()
GeneratePackageReport.cs (1)
237var inboxFrameworks = index.GetInboxFrameworks(PackageId).NullAsEmpty();
GetLastStablePackage.cs (1)
93foreach (var stablePackage in StablePackages.NullAsEmpty())
GetLayoutFiles.cs (1)
45var frameworks = Frameworks.NullAsEmpty().ToDictionary(
GetPackageDestination.cs (2)
77SuppressPackageTargetFrameworkCompatibility.NullAsEmpty().Select( 83var packageTargetFrameworks = PackageTargetFrameworks.NullAsEmpty().Where(p => !String.IsNullOrEmpty(p.ItemSpec));
GetPackageFromModule.cs (1)
52foreach(var modulePackage in ModulePackages.NullAsEmpty())
GetSupportedPackagesFromPackageReports.cs (1)
25foreach (var packageReport in PackageReports.NullAsEmpty())
HarvestPackage.cs (4)
270var livePackageItems = Files.NullAsEmpty() 510_pathsToExclude = new HashSet<string>(PathsToExclude.NullAsEmpty().Select(NormalizePath), StringComparer.OrdinalIgnoreCase); 522_pathsToInclude = PathsToInclude.NullAsEmpty().ToDictionary(i => NormalizePath(i.ItemSpec), i=> i, StringComparer.OrdinalIgnoreCase); 534_pathsToSuppress = new HashSet<string>(PathsToSuppress.NullAsEmpty().Select(NormalizePath));
UpdatePackageIndex.cs (3)
100foreach(var package in Packages.NullAsEmpty().Select(f => f.GetMetadata("FullPath"))) 106foreach(var packageFolder in PackageFolders.NullAsEmpty().Select(f => f.GetMetadata("FullPath"))) 287var assmVersions = new HashSet<Version>(assemblyVersions.NullAsEmpty().Where(v => v != null));
ValidateHarvestVersionIsLatestForRelease.cs (4)
73foreach (KeyValuePair<string, Target> packageTarget in report.Targets.NullAsEmpty()) 75foreach (PackageAsset compileAsset in packageTarget.Value.CompileAssets.NullAsEmpty()) 83foreach (PackageAsset runtimeAsset in packageTarget.Value.RuntimeAssets.NullAsEmpty()) 91foreach (PackageAsset nativeAsset in packageTarget.Value.NativeAssets.NullAsEmpty())
ValidatePackage.cs (3)
143var allRuntimeGenerations = _report.Targets.Values.SelectMany(t => t.RuntimeAssets.NullAsEmpty()) 387var allDlls = _report.Targets.Values.SelectMany(t => t.CompileAssets.NullAsEmpty().Concat(t.RuntimeAssets.NullAsEmpty()));