Xamarin & .NET Developer Events in August
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.
The .targets
file adds a MSBuild task which will then read the and
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.
Usage
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.
Features
This is currently what is available in the first release:
- Automatic parsing of
InputJar
andEmbeddedJar
- 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
Related posts