Embed LICENSE.txt in generated NuGet packages#22
Merged
Conversation
Closed
Copilot
AI
changed the title
[WIP] Embed license in NuGet package output
Embed LICENSE.txt in generated NuGet packages
Jul 9, 2026
DecSmith42
marked this pull request as ready for review
July 9, 2026 12:00
DecSmith42
approved these changes
Jul 9, 2026
DecSmith42
enabled auto-merge
July 9, 2026 12:01
Contributor
There was a problem hiding this comment.
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.txtto NuGet package metadata. - Pack
LICENSE.txtinto the package root alongside the existing icon and readme entries.
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`.
This was referenced Jul 10, 2026
This was referenced Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LICENSE.txtexists 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: addedPackageLicenseFilemetadata and aPack-includedNoneitem forLICENSE.txt, mirroring the existing pattern used foricon.pngandreadme.md.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.