question

80240195 avatar image
0 Votes"
80240195 asked LeonLu-MSFT commented

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

I do as the document (https://docs.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


dotnet-xamarin
image.png (266.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered LeonLu-MSFT commented

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.



image.png (70.5 KiB)
image.png (9.9 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am trying, thank you.

0 Votes 0 ·

OK, Is that worked?

0 Votes 0 ·