This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.VSforMac.
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
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). |