You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to the way we set up the BuildDependsOn when PackOnBuild == true. Currently, we just run Pack after build, regardless of whether the build was single or multi-targeting. This causes 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.
We need to account for this inner build situation and not Pack in that case, only when doing an outer build (or non-multitargeting build).
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.
Given a project:
Running build will result in a package that only contains netstandard2.0 libs.
Reported by @mauroa
The text was updated successfully, but these errors were encountered: