Skip to content

When your plugin has a Windows specific TFM the nuget catalogs don't work #9

@Tim-Utelogy

Description

@Tim-Utelogy

If you have a nuget based plugin that uses a TFM like "net6.0-windows10.0.19041" the nuget catalog initializations will fail even if the executable loading the plugins is targeting the same TFM. This is due to a difference in how the NuGetFramework parse calls behave. When these calls are made within the nuget downloader they return framework objects that don't pass the test:

            var _compProvider = new CompatibilityProvider(new DefaultFrameworkNameProvider());
            var compatible = _compProvider.IsCompatible(bal, baz);

NuGetFramework.Parse("net6.0-windows10.0.19041")
NuGetFramework.ParseFrameworkName("net6.0-windows10.0.19041", frameworkNameProvider);

var nuGetFramework = NuGetFramework.ParseFrameworkName(targetFramework, frameworkNameProvider);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions