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

Never pack NuGetizer transitively #354

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Never pack NuGetizer transitively #354

merged 1 commit into from
Mar 20, 2023

Conversation

kzu
Copy link
Member

@kzu kzu commented Mar 20, 2023

This stops inference from collecting transitive dependency files from NuGetizer and packing them too alongisde the consuming project.

This is currently an issue since due to being a development dependency, NuGetizer will by default install with a PrivateAssets=all value, which for packing purposes means "pack everything this dependency brings, transitively, into this package output", since that's the most common scenario.

But for build-only packages like NuGetizer, it doesn't make sense. Especially for non-build transitive assets such as analyzer's localization files (i.e. SponsorLink in NuGetizer's case).

So we default this to the most obvious value now.

This stops inference from collecting transitive dependency files from NuGetizer and packing them too alongisde the consuming project.

This is currently an issue since due to being a development dependency, NuGetizer will by default install with a `PrivateAssets=all` value, which for packing purposes means "pack everything this dependency brings, transitively, into this package output", since that's the most common scenario.

But for build-only packages like NuGetizer, it doesn't make sense. Especially for non-build transitive assets such as analyzer's localization files (i.e. SponsorLink in NuGetizer's case).

So we default this to the most obvious value now.
@kzu kzu added the enhancement New feature or request label Mar 20, 2023
@kzu kzu enabled auto-merge (rebase) March 20, 2023 19:03
@kzu kzu merged commit ec664c9 into main Mar 20, 2023
@kzu kzu deleted the dev/NonTransitive branch March 20, 2023 19:17
@devlooped devlooped locked and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant