Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Add android-platform-support.override.props #10025

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pjcollins
Copy link
Member

@pjcollins pjcollins commented Apr 10, 2025

The monodroid.override.props file has been updated and renamed to
android-platform-support.override.props to enable dotnet/android-tools
path overrides when building android-platform-support.

This override should ensure that we always use the dotnet/android-tools
path from dotnet/android when building both android and the debugging
tasks.

This should resolve the Microsoft.Android.Build.BaseTasks assembly
version mismatch issue we've seen recently when trying to update the
dotnet/android-tools submodule reference without also updating
android-platform-support:

Xamarin.Android.Common.Debugging.targets(74,2): error MSB4062: The "Xamarin.Android.Tasks.ResolveXamarinAndroidTools" task could not be loaded from the assembly Xamarin.Android.Build.Debugging.Tasks.dll. Could not load file or assembly 'Microsoft.Android.Build.BaseTasks, Version=1.0.96.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. The system cannot find the file specified.

The `monodroid.override.props` file has been updated and renamed to
`android-platform-support.override.props` to enable dotnet/android-tools
path overrides when building android-platform-support.

This should resolve the `Microsoft.Android.Build.BaseTasks` assembly
version mismatch issue we've seen recently when trying to update the
dotnet/android-tools submodule reference without also updating
android-platform-support:

    Xamarin.Android.Common.Debugging.targets(74,2): error MSB4062: The "Xamarin.Android.Tasks.ResolveXamarinAndroidTools" task could not be loaded from the assembly Xamarin.Android.Build.Debugging.Tasks.dll. Could not load file or assembly 'Microsoft.Android.Build.BaseTasks, Version=1.0.96.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. The system cannot find the file specified.
@pjcollins pjcollins requested a review from jonpryor as a code owner April 10, 2025 22:58
@pjcollins pjcollins requested a review from dellis1972 April 10, 2025 22:58
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.

1 participant