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

[Xamarin.Android.Build.Tasks] Add $(_BindingsToolsLocation) to allow overriding binding tool binaries. #8069

Merged
merged 1 commit into from
May 25, 2023

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented May 25, 2023

There are a few instances where we would like to run a custom/updated generator and class-parse with an existing .NET install:

  • AndroidX/GPS would like newer fixes that may not have been backported to previous target frameworks that are still shipped
  • We would like some CI for generator itself that runs proposed changes against a large corpus like AndroidX/GPS before being committed to detect possible bugs sooner
  • Being able to easily test local generator changes against test cases without using dotnet-local (especially for running inside VS)

To facilitate this, add the internal MSBuild option $(_BindingsToolsLocation) which can be set to a path where a custom/updated generator/class-parse exist:

dotnet build MyBindings.csproj -p:_BindingsToolsLocation=C:\code\Java.Interop\bin\Debug\

@jpobst jpobst marked this pull request as ready for review May 25, 2023 21:09
@jpobst jpobst requested a review from dellis1972 as a code owner May 25, 2023 21:09
@jpobst jpobst requested a review from jonpryor May 25, 2023 21:09
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

The test failure seems to be caused by this being blank:

https://github.com/xamarin/xamarin-android/blob/a2f4171604f1d2245daad6348f82f61bff5e3c57/tests/MSBuildDeviceIntegration/Tests/XASdkDeployTests.cs#LL115C31-L115C40

This seems unrelated, will investigate further, but we can merge this one.

@jonathanpeppers jonathanpeppers merged commit dc8f259 into main May 25, 2023
@jonathanpeppers jonathanpeppers deleted the override-generator branch May 25, 2023 21:17
jonathanpeppers pushed a commit that referenced this pull request May 25, 2023
…overriding binding tool binaries. (#8069)

There are a few instances where we would like to run a custom/updated
`generator` and `class-parse` with an existing .NET install:

* AndroidX/GPS would like newer fixes that may not have been
  backported to previous target frameworks that are still shipped
* We would like some CI for `generator` itself that runs proposed
  changes against a large corpus like AndroidX/GPS before being
  committed to detect possible bugs sooner
* Being able to easily test local `generator` changes against test
  cases without using `dotnet-local` (especially for running inside
  VS)

To facilitate this, add the internal MSBuild option
`$(_BindingsToolsLocation)` which can be set to a path where a
custom/updated `generator`/`class-parse` exist:

    dotnet build MyBindings.csproj -p:_BindingsToolsLocation=C:\code\Java.Interop\bin\Debug\
grendello added a commit to grendello/xamarin-android that referenced this pull request May 26, 2023
* main:
  [Xamarin.Android.Build.Tasks] introduce Eol.targets for .NET 6 (dotnet#8047)
  [Xamarin.Android.Build.Tasks] Add $(_BindingsToolsLocation) to allow overriding binding tool binaries. (dotnet#8069)
  [tests] new test for provisioning JDKs (dotnet#8059)
  Localized file check-in by OneLocBuild Task (dotnet#8065)
  [AndroidDependenciesTests] Use platform-tools 34.0.3 (dotnet#8062)
  Bump to xamarin/Java.Interop/main@93c50fe (dotnet#8060)
  [Xamarin.Android.Build.Tasks] Update XA5300 text (dotnet#8057)
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants