question

WilliamLiu-0692 avatar image
0 Votes"
WilliamLiu-0692 asked AmyPeng1-MSFT edited

is runtime needed to be installed on android or ios device if running MAUI application on this device?

Is the answer is not, does it mean the MAUI application also contains the dotnet components for supporting running on device?

I`m worrying about the application size if each MAUI application contains the shared dotnet components.

thanks!
-William

dotnet-maui
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 AmyPeng1-MSFT edited

Hello,​

is runtime needed to be installed on android or ios device if running MAUI application on this device?

No

does it mean the MAUI application also contains the dotnet components for supporting running on device?

Yes. .NET MAUI apps will be compiled into native app packages:

Android apps built using .NET MAUI compile from C# into intermediate language (IL) which is then just-in-time (JIT) compiled to a native assembly when the app launches.

iOS apps built using .NET MAUI are fully ahead-of-time (AOT) compiled from C# into native ARM assembly code.

You can refer to this documentation for more details about How .NET MAUI works


Best Regards,

Leon Lu



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.


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.