Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

do all packages in nuget have free licence to use?

I am working on a project which require manipulating Excel files. I found a library for this job called Aspose.cells. it is not a free library and we should buy its licence from its site in order to use it in our projects. However, I found that there is a nuget package of this library. So I am a bit confused and wanted to ask these questions:

  1. Since I met nuget I have been thinking that all packages exit on it are free though this one seems to not be. Any description??

  2. I remember one of my friends used Aspose.cells without buying any license what would happen if I did so?

like image 473
soroush shirali Avatar asked Jul 26 '15 15:07

soroush shirali


People also ask

Do I need a license to install NuGet packages?

Typically a NuGet package that does not have an open source license will require you to accept the license agreement before installing it but you should still review the license even if you are not prompted to accept one. Not all NuGet packages are free on nuget.org but a lot of them are free.

What happened to license URL in NuGet?

Keep in mind that recently NuGet deprecated LicenseUrl and encourage package authors to use license expressions, or embed their licence file in the nupkg.

Where can I find the license text for my NuGet tool?

If all of your packages come from nuget.org, you can have your tool generate urls to nuget.org/packages/{package id}/{package version}/license. But if you use multiple sources, you have no way of knowing which source a package came from, and other feeds might not have an easy way to see the license text for embedded licenses.

How does NuGet respond to license expressions?

Licenses.nuget.org responds to requests containing valid license expressions with an HTTP 200 status code and a web page containing a description of the license expression: if supplied license expression contains a single license identifier a web page is returned that contains that license reference text;


1 Answers

A NuGet package available on nuget.org can have any license.

There is no restriction on whether the NuGet package is free, open source or commercially licensed.

You should review the license that each NuGet package has. Typically a NuGet package that does not have an open source license will require you to accept the license agreement before installing it but you should still review the license even if you are not prompted to accept one.

  1. Not all NuGet packages are free on nuget.org but a lot of them are free.
  2. The Aspose.Cells NuGet package has a license agreement that needs to be accepted before it can be installed. A quick review of this license agreement indicates that you need to purchase a license after the evaluation period has expired but you should review the license yourself to see if you can accept and understand it.
like image 200
Matt Ward Avatar answered Oct 13 '22 14:10

Matt Ward