Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 821
Vukoje Avatar asked Oct 17 '16 08:10

Vukoje


People also ask

Does .NET core use NuGet?

For . NET (including . NET Core), the Microsoft-supported mechanism for sharing code is NuGet, which defines how packages for . NET are created, hosted, and consumed, and provides the tools for each of those roles.

How use NuGet package in asp net core?

Right-click the folder in the project, and then select Add Packages… Select the NuGet.org from the Package source drop-down. The Syncfusion ASP.NET Core NuGet packages are listed and available. Search and install the required packages in your application, by clicking the Add Package button.

How do you check NuGet packages?

Find packages. You can find packages directly at https://nuget.org/packages, or from the Visual Studio Package Manager UI or Package Manager Console with nuget.org as a source.

Where are NuGet packages installed .NET core?

The global-packages folder is where NuGet installs any downloaded package. Each package is fully expanded into a subfolder that matches the package identifier and version number. Projects using the PackageReference format always use packages directly from this folder.


2 Answers

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:

package supporting .NETStandard 1.0

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

package with empty Dependencies section

like image 180
Nate Barbettini Avatar answered Sep 28 '22 06:09

Nate Barbettini


enter image description hereSetup 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.

like image 24
Joe Healy Avatar answered Sep 28 '22 06:09

Joe Healy