SOLVED

How to build MAUI to apk?

New Contributor

i try publish,it can not work

2 Replies
best response confirmed by SampsonYe (New Contributor)
Solution

@SampsonYe 

 

Using the dotnet cli you can build an apk using the following command:

 

dotnet build -f net6.0-android

 

The apk file will be built, and you can find it at <app-root-dir>/bin/release/net6.0-android/com.companyname.appname-Signed.apk

@StrathdeeK 

Wowo  nice, it work!!

just use dotnet cli can finish it

 

but why VS 2022 Preview Can't publish suitable apk?

SampsonYe_0-1637858578222.png