Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build helpers for NuGet packages #345

Merged
merged 11 commits into from
Oct 13, 2023
Merged

Conversation

twsouthwick
Copy link
Member

This adds a target to the adapters that will allow making use of Content from older style NuGet packages that don't work with PackageReference. This is done by adding an attribute CopyContent='true' to the PackageReference node in the project file, which will cause all the content in the package to be passed into the Content ItemGroup and copied to the output directory.

This adds a target to the adapters that will allow making use of Content from older style NuGet packages that don't work with PackageReference. This is done by adding an attribute `CopyContent='true'` to the PackageReference node in the project file, which will cause all the content in the package to be passed into the Content ItemGroup and copied to the output directory.
@twsouthwick
Copy link
Member Author

@jeffkl You helped me develop this a while back, and I'm looking to ship it in this library so that it's easy for customers to consume. Has anything changed on the NuGet side to make this not needed anymore or is it still valuable?

<Target Name="AddNugetContentFiles" BeforeTargets="AssignTargetPaths">

<!-- Identity PackageReference and paths to packages -->
<ItemGroup>
Copy link

@jeffkl jeffkl Oct 13, 2023

Choose a reason for hiding this comment

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

FYI @rainersigwald so he can see this beautiful hackery 😄

@twsouthwick twsouthwick merged commit 8c3053c into main Oct 13, 2023
5 checks passed
@twsouthwick twsouthwick deleted the tasou/nuget-content-files branch October 13, 2023 17:29
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.

3 participants