I have a software that uses some MIT and Apache licenses. The source code is not open source and all the third-party software is downloaded from Nuget as a reference (I'm not including the source code in my project or modyfing it). Do I have to include some license information somewhere in my project or documentation?

It might seem as a trivial question, but I'm looking for direct answer for an hour now without success.


NuGet's official docs have this section on including a license expression or file, if you're packing an SDK style project. License expression won't work for you, because I believe only open source licenses are included in the SPDX specification.

Basically, in your project file, you'll need a property which tells NuGet what the path to the license file will be once packed, and an item to tell NuGet which file on disk to put in the package.


    <None Include="licenses\LICENSE.txt" Pack="true" PackagePath=""/>

If you're still using a nuspec file, this page explains how to do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy