XamarinAliases.

BuildAndroidApk(ICakeContext, FilePath, bool, string, Action<MSBuildSettings>) Method

Summary

Creates an android .APK package file using the MSBuild target `SignAndroidPackage` See documentation for more info: https://developer.xamarin.com/guides/android/under_the_hood/build_process/#Build_Targets
Assembly
Cake.Xamarin.dll
Namespace
Cake.Xamarin
Containing Type
XamarinAliases

Syntax

public static FilePath BuildAndroidApk(this ICakeContext context, FilePath projectFile, bool sign = false, string configuration = "Release", Action<MSBuildSettings> configurator = null)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
projectFile FilePath The .CSPROJ file to build from.
sign bool Will create a signed .APK file if set to true based on the signing settings in the .CSPROJ, otherwise the .APK will be unsigned.
configuration string The MSBuild /p:Configuration to use (default is Release).
configurator Action<MSBuildSettings> The settings configurator.

Return Value

Type Description
FilePath The file path of the .APK which was created (all subfolders of the project file specified are searched for .apk files and the newest one found is returned).