Skip to content

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

Merged
jonathanpeppers merged 1 commit into
mainfrom
override-generator
May 25, 2023
Merged

[Xamarin.Android.Build.Tasks] Add $(_BindingsToolsLocation) to allow overriding binding tool binaries.#8069
jonathanpeppers merged 1 commit into
mainfrom
override-generator

Conversation

@jpobst

@jpobstjpobst commented May 25, 2023

Copy link
Copy Markdown
Contributor

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
jpobstforce-pushed the override-generator branch from ead8954 to bc5edf2CompareMay 25, 2023 18:34
@jpobst
jpobstforce-pushed the override-generator branch from bc5edf2 to b9d141cCompareMay 25, 2023 19:13
@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 ownerMay 25, 2023 21:09
@jpobst
jpobst requested a review from jonpryorMay 25, 2023 21:09

@jonathanpeppersjonathanpeppers left a comment

Copy link
Copy Markdown
Member

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 mainMay 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-actionsgithub-actionsBot locked and limited conversation to collaborators Jan 22, 2024
Sign up for freeto 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

@jpobst@jonathanpeppers