Repository navigation
Avoid copying transitive task dependencies - #12470
Merged
simonrozsival merged 1 commit intoAug 21, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5798fe53-b8b3-44e5-b67a-3fc057067981
Contributor
There was a problem hiding this comment.
Pull request overview
This PR ports the βshared outputβ fix to main by preventing NuGet from copying transitive runtime assets into the shared SDK pack tools output used by both Microsoft.Android.Build.Tasks and Xamarin.Android.Build.Tasks, avoiding accidental overwrites of compatible assemblies.
Changes:
- Disable
CopyLocalLockFileAssembliesforMicrosoft.Android.Build.Tasksto stop transitive runtime asset copying into the shared tools folder. - Add an explanatory comment documenting why the copy behavior must be disabled when sharing
$(OutputPath).
simonrozsival
approved these changes
Aug 21, 2026
simonrozsival
deleted the
jonathanpeppers-fix-build-tasks-shared-output
branch
August 21, 2026 09:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Port the shared-output fix from #12468 to
mainby disablingCopyLocalLockFileAssembliesforMicrosoft.Android.Build.Tasks.The project shares the SDK pack tools output with
Xamarin.Android.Build.Tasks; preventing transitive runtime asset copies avoids replacing compatible shared assemblies with framework-specific implementations.Validation
Built
Microsoft.Android.Build.Tasks.csprojinto an isolated shared SDK tools output and confirmed:System.IO.Hashing.dllis not copiedMicrosoft.Android.Build.BaseTasks.dllremains copiedMicrosoft.Android.Build.Tasks.dllis produced