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