How to know will nuget package work on .NET Core?

前端 未结 2 1061
面向向阳花
面向向阳花 2021-02-19 21:02

I would expect some kind of filter to exists on website or in console.

相关标签:
2条回答
  • 2021-02-19 21:12

    Setup a .NET Core project in the version you want. I keep 1.1 and 2.0 projects around for futzing with this. Then try and add the nuget to the project.

    For instance, ASPOSE will NOT add to a 1.1 project, but will add to a 2.0 project.

    Easiest route in the short term until they fix this somehow.

    Obviously this is no guarantee it still works but gives you a good idea if its api compat.

    0 讨论(0)
  • 2021-02-19 21:24

    This isn't easy right now, unfortunately. There's an issue open on the NuGet Github about adding a filter to the website.

    Right now, the best way to tell if a package will work with .NET Core is by examining the frameworks it supports in the Dependencies section.

    If .NETStandard is listed, the package supports .NET Core via the .NET Platform Standard:

    If a package's Dependencies section doesn't mention .NETStandard, or the Dependencies section is completely empty, it does not support .NET Core:

    0 讨论(0)
提交回复
热议问题