Skip to content

Commit

Permalink
Default to transitively copying content items (#6622)
Browse files Browse the repository at this point in the history
Co-authored-by: Rainer Sigwald <[email protected]>
  • Loading branch information
benvillalobos and rainersigwald authored Jul 9, 2021
1 parent cdc5fae commit e618fde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions documentation/wiki/ChangeWaves.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ The opt-out comes in the form of setting the environment variable `MSBuildDisabl
- [Allow users that have certain special characters in their username to build successfully when using exec](https://github.com/dotnet/msbuild/pull/6223)
- [Fail restore operations when an SDK is unresolveable](https://github.com/dotnet/msbuild/pull/6430)
### 17.0
- [Default to transitively copying content items](https://github.com/dotnet/msbuild/pull/6622)

## Change Waves No Longer In Rotation
5 changes: 3 additions & 2 deletions src/Tasks/Microsoft.Common.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4740,9 +4740,10 @@ Copyright (C) Microsoft Corporation. All rights reserved.
GetCopyToOutputDirectoryItems depends on an unspecified dependency _SplitProjectReferencesByFileExistence -> AssignProjectConfiguration (https://github.com/microsoft/msbuild/issues/4677).
When the unspecified dependency does not happen by accident, content copying is only 1 level deep instead of transitive.
This target enforces the dependency.
TODO: make transitive content copying the default when the breaking change is acceptable.
-->

<MSBuildCopyContentTransitively Condition=" '$(MSBuildCopyContentTransitively)' == '' and $([MSBuild]::AreFeaturesEnabled('17.0'))">true</MSBuildCopyContentTransitively>

<_TargetsThatPrepareProjectReferences Condition=" '$(MSBuildCopyContentTransitively)' == 'true' ">
AssignProjectConfiguration;
_SplitProjectReferencesByFileExistence
Expand Down

0 comments on commit e618fde

Please sign in to comment.