Building net7.0-android MAUI project with LLVM optimizing compiler option enabled

dg2k 1,401 Reputation points
2023-02-22T08:17:10.4333333+00:00

VS IDE: Version 17.5.0 Preview 6.0

Framework version: 7.0.59

When I build my net7.0-android project, I find all the Build output files in bin\Release\net7.0-android folder including my <assembly-name>-Signed.apk file which I am after.

However, when I enable the LLVM optimizing compiler option (a checkbox under project properties), I don't see all the expected Build output files.

What I want to do is to side-load an *.apk into my device for testing. With LLVM the apk file is missing. Does the LLVM require a different approach or am I missing something?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,033 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,611 Reputation points Microsoft External Staff
    2023-02-28T02:52:07.71+00:00

    Hello,

    However, when I enable the LLVM optimizing compiler option (a checkbox under project properties), I don't see all the expected Build output files.

    In fact, enabling LLVM in MAUI does not only select compiler option, please refer to this official blog: AOT and LLVM.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.