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

Dev > Main #33

Merged
merged 5 commits into from
Nov 25, 2020
Merged

Dev > Main #33

merged 5 commits into from
Nov 25, 2020

Conversation

kzu
Copy link
Member

@kzu kzu commented Nov 25, 2020

No description provided.

The item metadata on a `PackageReference` may be useful to consumers that use `PrivateAssets` to automatically add implicit package references to transitive dependencies (i.e. to include all dependent assemblies as part of a build tasks assembli). The user-defined metadata may later be used to further tweak the inference (i.e. selectively removing some items from the resulting `PackageFile` items). For this scenario, it's useful to preserve the original metadata in the top-most `PackageReference` that triggers an implicit transitive dependency tree to be a candidate for inference.

We also remove from the task the conditional checks on the package reference metadata since the targets already performed the same checks. This makes the task more flexible, should a user decide to invoke it explicitly as part of some custom inference they might want to perform (i.e. inferring content based on different metadata than `PrivateAssets=all`).
Add support for a `PackageReference` metadata attribute on `PackageFile` so that content from other packages can be included more easily.

Fixes #30.
This file is only used for nugetizer tasks build itself.
Due to the way we were setting up the BuildDependsOn when PackOnBuild == true, we were running Pack after build, regardless of whether the build was single or multi-targeting. This caused the Pack to run once for each TF, causing each build to overwrite the previous package and therefore leaving only the last TFM built as the package contents.

This change switches to using Before/After targets and conditions instead with DependsOn for Build/Pack, as well as a mirror property to PackOnBuild, BuildOnPack to avoid building before pack (which the default behavior in SDK pack too).

Fixes #32.
@kzu kzu merged commit 75e514c into main Nov 25, 2020
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.

1 participant