Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tim-Utelogy opened this issue Nov 17, 2022 · 1 comment

Comments

@Tim-Utelogy
Copy link

Tim-Utelogy commented Nov 17, 2022

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);

@Tim-Utelogy
Copy link
Author

Is this project dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant