7

Xamarin.Android Binding Generators

 3 years ago
source link: https://github.com/mattleibow/Xamarin.Android.Bindings.Generators
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Xamarin.Android Binding Generators

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 MSBui8ld task which will then read the <InputJar> and <EmbeddedJar> elements and automatically generate the transform files needed to set the parameter names for all the bound methods.

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK