Skip to content

NuGet package target framework with no libs causes cache manifest validation to fail and redownload the plugin on every game launch #35

Description

@StarCpt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions