how to package my xamarin.forms project to aab file?

钢 屈 371 Reputation points
2021-10-12T12:16:57.613+00:00

I do as the document (https://learn.microsoft.com/en-us/answers/questions/537836/how-do-i-package-the-xamarin-forms-application-to.html).
My project file include
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<AndroidPackageFormat>aab</AndroidPackageFormat>
</PropertyGroup>

But when I package, the file is apk, is not aab.
How to package to aab?

139869-image.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
    2021-10-13T01:30:43.523+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Make sure you have installed Visual Studio 16.4 or higher on Windows or Visual Studio for Mac 8.4 or higher on Mac.

    Then prepare your application for Release

    Change the Android Package Format to bundle. And other settings like my following screenshot.

    140032-image.png

    After you’ve completed these steps, you can generate an app bundle by right clicking your project and selecting Archive. This will generate an app bundle for your application.

    140041-image.png

    Here is a step by step ways to generate aab file.

    https://devblogs.microsoft.com/xamarin/android-app-bundle/

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful