This NuGet is no longer required to get nice parameter names in the binding. With the release of Cycle 8, Xamarin has provided a way to use the
class-parse tool that comes with the Xamarin release.
More information can be found on the binding docs, but the gist of it is that you just need to add a new element to your project file:
<PropertyGroup> <AndroidClassParser>class-parse</AndroidClassParser> </PropertyGroup>
A MSBuild Task to make Xamarin.Android binding projects easier.
Currently, there is no nice way to set the parameter names for methods when binding Xamarin.Android libraries. This tiny little NuGet adds a
.targets file to the Xamarin.Android Binding project.
.targets file adds a MSBuild task which will then read the jar elements and automatically generate the transform files needed to set the parameter names for all the bound methods.
You can view the project source for this on GitHub.
Using this is very simple, just install the NuGet:
PM> Install-Package Xamarin.Android.Bindings.Generators
Then, rebuild! That is all!
As this is just used for binding projects, it shouldn’t be installed
into Xamarin.Android app projects.
This is currently what is available in the first release:
- Automatic parsing of
- Handles multiple input files
- Finds available parameter names
- Missing parameter names are still meaningful (uses type names)
- Shouldn’t give matched-no-nodes warnings
- No manual intervention necessary