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

Make sure we can explicitly pack a privateassets/development dependency #388

Merged
merged 1 commit into from
May 5, 2023

Conversation

kzu
Copy link
Member

@kzu kzu commented May 5, 2023

As a package author, you might consume a development dependency for your own authoring, but also might want to take a dependency on it in your package. GitInfo is an example.

We want to make sure we honor explicit Pack=true even if a package has PrivateAssets=all (which has different use cases too).

Fixes #281

@kzu kzu added the enhancement New feature or request label May 5, 2023
@kzu kzu force-pushed the dev/pack-privateasssets branch from 51f0e02 to e72cbc8 Compare May 5, 2023 12:12
As a package author, you might consume a development dependency for your own authoring, but also might want to take a dependency on it in your package. GitInfo is an example.

We want to make sure we honor explicit Pack=true even if a package has PrivateAssets=all (which has different use cases too).
@kzu kzu force-pushed the dev/pack-privateasssets branch from e72cbc8 to ae7fe3d Compare May 5, 2023 12:13
@kzu kzu enabled auto-merge (rebase) May 5, 2023 12:22
@kzu kzu disabled auto-merge May 5, 2023 12:23
@kzu kzu enabled auto-merge (rebase) May 5, 2023 12:24
@kzu kzu merged commit 98f104b into main May 5, 2023
@kzu kzu deleted the dev/pack-privateasssets branch May 5, 2023 12:26
kzu added a commit to devlooped/GitInfo that referenced this pull request May 5, 2023
A missing feature in NuGetizer (see devlooped/nugetizer#388) caused our dependency on ThisAssembly.Constants to be lost now that it explicitly sets itself as PrivateAssets=all to prevent analyzer propagation to referenced projects.

This scenario (a package reference with PrivateAssets=all AND Pack=true) was not supported by NuGetizer.

We now do, so this bump is enough to fix the issue.

Fixes #281
kzu added a commit to devlooped/GitInfo that referenced this pull request May 5, 2023
A missing feature in NuGetizer (see devlooped/nugetizer#388) caused our dependency on ThisAssembly.Constants to be lost now that it explicitly sets itself as PrivateAssets=all to prevent analyzer propagation to referenced projects.

This scenario (a package reference with PrivateAssets=all AND Pack=true) was not supported by NuGetizer.

We now do, so this bump is enough to fix the issue.

Fixes #281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant