Fix Unix target-time Update wiping Pack on license files (NU5030) - #30
Merged
Conversation
MSBuild target-time Update="path" matches every None/Content item on Unix, which cleared Pack on license files and triggered NU5030. Match by %(Identity) + Condition (or Remove of a filtered item list) instead, and add SDK pack scenarios that keep license/notice files packed.
kzu
enabled auto-merge (rebase)
August 19, 2026 04:59
Member
Author
🧪 Details on Ubuntu 24.04.4 LTSfrom retest v1.1.0 on .NET 10.0.11 with 💜 by @devlooped |
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.
Summary
Target-time
Update="path"inProcessPackageReadme/ClearPackageReadmeWhenPackReadmeFalsematches everyNone/Contentitem on Unix, so retargeting the processed readme also setPack=falseonPackageLicenseFileand other packed items (NU5030).Update="%(Identity)"+Condition(orRemoveof a filtered list)_ReadmeSourceFilesoFullPathcompares work on UnixPackReadme=falsestill packs the EULATest plan
dotnet test src/Tests/Tests.csproj -c Release