These days I compiled first MAUI app on Linux for Android.
Using
sudo dotnet workload install maui-android
this installs additional files to /usr/share/dotnet/
Using VS Code to create the .NET MAUI App.
I have not "Signed in" to use the C# Dev Kit yet, but looks like it works. I don't need its special features yet.
Updating .cproj - using only net10.0-android
<!--
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
-->
<TargetFrameworks>net10.0-android</TargetFrameworks>
And probably VS Code works normally with Fast Deployment, but I want to use the command line.
I should use
dotnet run -f net10.0-android -c Debug
to upload all necessary files, dlls, to the .__override__ directory,
and run this app on emulator, otherwise I get
'No assemblies found in '/data/user/0/com.companyname.mauiapp1/files/.__override__/x86_64' or '<unavailable>'. Assuming this is part of Fast Deployment. Exiting...'
Then, probably, I will be able to use
dotnet build -f net10.0-android -c Debug
to update the corresponding dll and this or similar script for the Fast Deployment.
P.S. One issue is that VS Code caches the first JDK location, so I need to update this location in .NET MAUI: Configure Android every time.