Skip to content

Conversation

peterhuene
Copy link
Contributor

When publish copy-local assets differ from build copy-local assets (for
example, runtime store packages were excluded), a typo when adding the
reference copy local items caused items that were copied local for build to be
included in publish output.

This was caught by a CLI test that uses a manifest to exclude a package and
then runs the output of the publish operation, expecting it to fail because the
dependency was not copied locally (and no runtime store is used).

This change will fix the failing CLI test.

When publish copy-local assets differ from build copy-local assets (for
example, runtime store packages were excluded), a typo when adding the
reference copy local items caused items that were copied local for build to be
included in publish output.

This was caught by a CLI test that uses a manifest to exclude a package and
then runs the output of the publish operation, expecting it to fail because the
dependency was not copied locally (and no runtime store is used).

This change will fix the failing CLI test.
@peterhuene peterhuene requested a review from a team November 15, 2018 09:16
@peterhuene peterhuene added this to the 3.0.1xx milestone Nov 15, 2018
<ItemGroup>
<_ResolvedCopyLocalPublishAssets Include="@(ReferenceCopyLocalPaths)"
Exclude="@(_ResolvedCopyLocalPublishAssets)"
Exclude="@(_ResolvedCopyLocalBuildAssets)"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation of change: ReferenceCopyLocalPaths is a superset of _ResolvedCopyLocalBuildAssets when we copy local package assets for build. The intention of this was to add the subset of copy local paths that were not copied local from the build assets (_ResolvedCopyLocalPublishAssets may be a different set of items that was resolved just for publish). If we're reusing the build copy local assets, then _ResolvedCopyLocalPublishAssets will already contain _ResolvedCopyLocalBuildAssets.

@peterhuene peterhuene merged commit dab02ad into dotnet:master Nov 15, 2018
@peterhuene peterhuene deleted the fix-dotnet-publish-tests branch November 15, 2018 18:32
wli3 pushed a commit that referenced this pull request Feb 7, 2020
…0190905.2 (#2666)

- Microsoft.Build - 16.3.0-preview-19455-02
wli3 pushed a commit that referenced this pull request Feb 7, 2020
… merges/release/3.0.100-preview9-to-release/3.0.1xx

* upstream/release/3.0.100-preview9: (21 commits)
  Update dependencies from https://github.com/Microsoft/msbuild build 20190906.2 (#2779)
  Update dependencies from https://github.com/dotnet/cli build 20190908.6 (#2728)
  Update dependencies from https://github.com/dotnet/sdk build 20190908.1 (#2726)
  Update dependencies from https://github.com/dotnet/cli build 20190908.2 (#2715)
  Update dependencies from https://github.com/aspnet/websdk build 20190908.1 (#2713)
  Update dependencies from https://github.com/dotnet/cli build 20190907.12 (#2710)
  Update dependencies from https://github.com/dotnet/cli build 20190907.11 (#2707)
  Update dependencies from https://github.com/aspnet/websdk build 20190907.5 (#2706)
  Update dependencies from https://github.com/dotnet/cli build 20190907.9 (#2705)
  Update dependencies from https://github.com/aspnet/websdk build 20190907.4 (#2704)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190907.3 (#2702)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190906.6 (#2675)
  Update dependencies from https://github.com/dotnet/cli build 20190906.12 (#2670)
  Update dependencies from https://github.com/dotnet/sdk build 20190906.2 (#2669)
  Update dependencies from https://github.com/Microsoft/msbuild build 20190905.2 (#2666)
  Update dependencies from https://github.com/dotnet/core-setup build 20190906.20 (#2668)
  Update dependencies from https://github.com/dotnet/cli build 20190906.11 (#2667)
  Update dependencies from https://github.com/dotnet/core-setup build 20190906.12 (#2659)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190905.12 (#2633)
  Update dependencies from https://github.com/Microsoft/msbuild build 20190830.3 (#2618)
  ...

Conflicts:
eng/Version.Details.xml
eng/Versions.props
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.

2 participants