A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hi @Kim Strasser ,
Thanks for your question.
The ReTrace mapping file is usually generated in the publish subfolder after a full Release build:
- Mapping file is usually generated in:
bin\Release\net10.0-android\publish\mapping.txt
(right next to your signed .aab file)
- Sometimes it lands in the root of the Release folder:
bin\Release\net10.0-android\mapping.txt
According to the official .NET for Android build properties documentation, the mapping file is produced automatically when using the R8 shrinker. However, code shrinking itself is turned off by default in most .NET MAUI projects.
- Right-click your MAUI project → Properties.
- Go to Android → Options tab.
- For the Release configuration:
- Turn on
Code shrinking(or set it to R8). - Make sure
Linkingis set toSdkOnlyorFull.
- Save, then do a clean + rebuild or Publish again.
- Then, check again to see if the mapping file exists.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.