Skip to content

Embed LICENSE.txt in generated NuGet packages#22

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

Embed LICENSE.txt in generated NuGet packages#22
DecSmith42 merged 4 commits into
mainfrom
copilot/embed-license-in-nuget

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

LICENSE.txt exists at the repo root but was never packed into the NuGet output, so consumers had no license file bundled with the package.

Changes

  • Directory.Build.props: added PackageLicenseFile metadata and a Pack-included None item for LICENSE.txt, mirroring the existing pattern used for icon.png and readme.md.
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
...
<None Include="../../LICENSE.txt" Pack="true" PackagePath="\" />

Since this file is shared across all packable projects under src/, every produced package now embeds the license and declares it via <license type="file">LICENSE.txt</license> in the nuspec.

Copilot AI requested review from Copilot and removed request for Copilot July 9, 2026 11:56
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:59
Copilot AI changed the title [WIP] Embed license in NuGet package output Embed LICENSE.txt in generated NuGet packages Jul 9, 2026
Copilot AI requested a review from DecSmith42 July 9, 2026 11:59
@DecSmith42
DecSmith42 marked this pull request as ready for review July 9, 2026 12:00
Copilot AI review requested due to automatic review settings July 9, 2026 12:00
@DecSmith42
DecSmith42 enabled auto-merge 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

This PR updates the repository’s shared MSBuild packaging defaults so that every packable project under src/ embeds the repo’s LICENSE.txt into the produced NuGet package and declares it via PackageLicenseFile.

Changes:

  • Add PackageLicenseFile=LICENSE.txt to NuGet package metadata.
  • Pack LICENSE.txt into the package root alongside the existing icon and readme entries.

Comment thread Directory.Build.props
Comment thread Directory.Build.props Outdated
@DecSmith42
DecSmith42 disabled auto-merge July 9, 2026 12:14
Updated `PackageReadmeFile` and file paths in `Directory.Build.props` to standardize naming and path usage. Removed redundant file inclusions in `_atom.csproj` and updated copyright in `LICENSE.txt`.
Copilot AI review requested due to automatic review settings July 9, 2026 12:17
@DecSmith42
DecSmith42 enabled auto-merge July 9, 2026 12:17

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread LICENSE.txt
@DecSmith42
DecSmith42 merged commit d5ba680 into main Jul 9, 2026
10 checks passed
@DecSmith42
DecSmith42 deleted the copilot/embed-license-in-nuget branch July 9, 2026 12:22
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