-
Notifications
You must be signed in to change notification settings - Fork 62
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
Conversation
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.
src/Microsoft.AspNetCore.SystemWebAdapters/Build/Microsoft.AspNetCore.SystemWebAdapters.props
Outdated
Show resolved
Hide resolved
@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? |
src/Microsoft.AspNetCore.SystemWebAdapters/Build/NuGetContentFiles.targets
Show resolved
Hide resolved
src/Microsoft.AspNetCore.SystemWebAdapters/Build/NuGetContentFiles.targets
Outdated
Show resolved
Hide resolved
src/Microsoft.AspNetCore.SystemWebAdapters/Build/NuGetContentFiles.targets
Show resolved
Hide resolved
…iles.targets Co-authored-by: Jeff Kluge <[email protected]>
src/Microsoft.AspNetCore.SystemWebAdapters/Build/NuGetContentFiles.targets
Show resolved
Hide resolved
<Target Name="AddNugetContentFiles" BeforeTargets="AssignTargetPaths"> | ||
|
||
<!-- Identity PackageReference and paths to packages --> | ||
<ItemGroup> |
There was a problem hiding this comment.
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 😄
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.