Skip to content

[17.0] Fix underbuild in VS#6919

Merged
rainersigwald merged 9 commits into
dotnet:vs17.0from
rainersigwald:copycomplete-incrementalclean-17
Oct 7, 2021
Merged

[17.0] Fix underbuild in VS#6919
rainersigwald merged 9 commits into
dotnet:vs17.0from
rainersigwald:copycomplete-incrementalclean-17

Conversation

@rainersigwald
Copy link
Copy Markdown
Member

Forward merge of #6918.

It looks like we missed merging some 16.11->main merges before forking for 17.0, but it was just the backport of the change that caused this regression, so pay attention primarily to the diff.

dotnet-maestro Bot and others added 9 commits September 9, 2021 09:32
…908.11 (dotnet#6833)

Microsoft.DotNet.Arcade.Sdk
 From Version 5.0.0-beta.21427.7 -> To Version 5.0.0-beta.21458.11
Fixes #dotnet#6576

### Context
dotnet#6576 revealed that the `.copycomplete` file marker is updated even when the `Copy` task in `_GetCopyFilesMarkedLocal` doesn't _actually_ copy anything. This can mess with incremental builds.

### Changes Made
This change adds an output parameter, `CopiedAtLeastOneFile` to the `Copy` task that the `Touch` task is now conditioned off of.

### Testing
Tested local builds

### Notes
This could also be done by having an ITaskItem[] that contains all files that were actually copied. Then the touch task could check if that item were empty. I opted for the straightforward route since the ITaskItem[] solution isn't needed yet, and this implementation can easily be changed when we do need that.

Co-authored-by: Forgind <Forgind@users.noreply.github.com>
…914.1 (dotnet#6850)

Microsoft.DotNet.Arcade.Sdk
 From Version 5.0.0-beta.21458.11 -> To Version 5.0.0-beta.21464.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
* Update to SDK 5.0.401

Avoids NuGet signing issues and is generally newer and better.

* Update eng\Versions.props

* Update NuGetBuildTasksVersion in eng\Versions.props

Co-authored-by: Ladi Prosek <laprosek@microsoft.com>
Skip Updating CopyComplete Marker When Not Necessary
Microsoft.DotNet.Arcade.Sdk
 From Version 5.0.0-beta.21464.1 -> To Version 5.0.0-beta.21505.11
Fixes dotnet#6917 by ensuring that the copy-marker file is _always_ added
to the FileWrites item if the copy-referenced-assemblies target runs
so that IncrementalClean never sees it as an 'orphan' file and then
deletes it.
@rainersigwald rainersigwald added this to the MSBuild 17.0 milestone Oct 7, 2021
@rainersigwald rainersigwald merged commit 6873d69 into dotnet:vs17.0 Oct 7, 2021
@rainersigwald rainersigwald deleted the copycomplete-incrementalclean-17 branch October 7, 2021 21:40
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