Skip to content

Embed LICENSE.txt in NuGet packages#14

Merged
DecSmith42 merged 2 commits into
mainfrom
copilot/invex-13-embed-license-in-nuget
Jul 9, 2026
Merged

Embed LICENSE.txt in NuGet packages#14
DecSmith42 merged 2 commits into
mainfrom
copilot/invex-13-embed-license-in-nuget

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

NuGet packages produced by this repo did not embed the repository's LICENSE.txt, leaving consumers without license metadata in the package.

Changes

  • Added PackageLicenseFile property in Directory.Build.props, pointing to LICENSE.txt
  • Added the file to the shared Pack item group alongside icon.png and README.md, so it's embedded in every package's root

Since these properties live in Directory.Build.props, the fix applies uniformly to all projects in the repo without per-project changes.

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

Copilot AI requested review from Copilot and removed request for Copilot July 9, 2026 11:55
Copilot AI linked an issue Jul 9, 2026 that may be closed by this pull request
Copilot AI requested review from Copilot and removed request for Copilot July 9, 2026 11:57
Copilot AI changed the title [WIP] Embed license in NuGet package output Embed LICENSE.txt in NuGet packages Jul 9, 2026
Copilot AI requested a review from DecSmith42 July 9, 2026 11:58
@DecSmith42 DecSmith42 marked this pull request as ready for review July 9, 2026 11:58
Copilot AI review requested due to automatic review settings July 9, 2026 11:58
@DecSmith42 DecSmith42 enabled auto-merge July 9, 2026 11:58
@DecSmith42 DecSmith42 merged commit 29d83b2 into main Jul 9, 2026
10 checks passed
@DecSmith42 DecSmith42 deleted the copilot/invex-13-embed-license-in-nuget branch July 9, 2026 12:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures NuGet packages produced by this repo embed the repository’s LICENSE.txt by configuring licensing metadata and packing the license file via shared MSBuild settings.

Changes:

  • Adds PackageLicenseFile to Directory.Build.props so generated packages declare LICENSE.txt as the license file.
  • Adds LICENSE.txt to the shared Pack item group so it’s embedded at the package root.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Directory.Build.props
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

Successfully merging this pull request may close these issues.

Embed license in nuget

3 participants