|
NuGetFramework nearest = frameworkReducer.GetNearest( |
|
targetFramework, |
|
itemGroups.Select(x => x.TargetFramework) |
|
); |
|
if (nearest is not null) |
|
{ |
|
List<Item> libFiles = []; |
|
foreach ( |
|
FrameworkSpecificGroup group in itemGroups.Where(x => |
|
x.TargetFramework.Equals(nearest) |
|
) |
|
) |
|
libFiles.AddRange( |
|
group |
|
.Items.Select(x => GetPackageItem(x, group.TargetFramework, contentItems)) |
|
.Where(x => x is not null) |
|
); |
|
return [.. libFiles]; |
|
} |
For example, the .net framework 4.5 library directory in System.Reflection.Emit.Lightweight is a stub. Pulsar should check FrameworkSpecificGroup.HasEmptyFolder to exclude stub frameworks.
Pulsar/Shared/Network/NuGetPackage.cs
Lines 44 to 62 in 206584e
For example, the .net framework 4.5 library directory inSystem.Reflection.Emit.Lightweightis a stub. Pulsar should check FrameworkSpecificGroup.HasEmptyFolder to exclude stub frameworks.