Open dellis1972 opened 4 months ago
This seems to be related to the "per-RID assembly" and "marshal methods" changes.
We now do the following additional work we did not do previously:
Mono.Android.dll
and Mono.Android.Export.dll
for JLOs.The actual "Generate Java Stubs" task does not need to scan Mono.Android.dll
, and only needs one architecture to create the JLO's from.
The additional work is needed by LLVM marshal methods, but we should investigate if we can avoid it when that feature is disabled, like in Debug mode.
For context, on my DevBox, the MAUI template default clean build (no devices attached) timing for GenerateJavaStubs
is:
Android application type
.NET Android (net7.0-android, net8.0-android, etc.)
Affected platform version
.NET 8.x
Description
I am seeing a 7 second task run time when building a Maui applicaiton incrementally.
Steps to Reproduce
dotnet build -f net8.0-android
CounterBtn.Text = $"Clicked {count} time";
toCounterBtn.Text = $"Clicked {count} time(s)";
in MainPage.xml.csdortnet build -f net8.0-android -bl
Did you find any workaround?
None
Relevant log output
No response