MAUI Overview
Khanh Nguyen • 15 October 2023 •
MAUI
If MAUI option is not show up
dotnet workload install maui
Some additional SDK#
Remember to install both Android SDK
and Java SDK
to your machine. Both of them can be install on custom location and
set corresponding path within csproj
file.
Android SDK
should be install via IDE, while Java SDK can be download
seperately. Android API version must be compatible with JDK version.
<PropertyGroup>
<OutputType>Exe</OutputType>
<UseMaui>true</UseMaui>
...
<!-- Set the AndroidSdkDirectory property -->
<AndroidSdkDirectory>Path to android SDK</AndroidSdkDirectory>
<JavaSdkDirectory>Path to JDK</JavaSdkDirectory>
...
</PropertyGroup>
If encounter error Error APT2260 : resource mipmap/appicon (aka com.companyname.colormaker:mipmap/appicon) not found
,
Check MauiIcon
from csproj
file, then add a dummy svg file into the path.
Noticable library#
CommunityToolkit.Maui
: Collection of open source library of .Net MAUI extensions, controls and other things.CommunityToolkit.Mvvm
: Easy way to add MVVM functionality to your app.