I created a .NET maui app and ran it immediately without any code changes. I only first changed to a Pixel 5 - API 33 (Android 13.0 API 33) before running the program. I got that Welocme robot image which is ok. However, Whayt I did was change the XAML code so it has extra items and not that robot image. I tried running it again, and I still get the original run image of the emulator. I also tried closing Visual Studo and then re-opening it and then running the project again and I still got the original image of the emulator as if I made no changes. Yet looking at the code, the changes I made are there, and when I runn the program no errors come up.
So how do I refresh the emulator to read my new code?

Ravikant SahuPosted Apr 12, 2023, 5:02 AM
try cleaning project and rebuilding your project also you can wipe the data of the emulator and uninstall the application. Try any of them and hope this will resolve.
Tuhin PaulPosted Apr 12, 2023, 3:23 AM
To rebuild the project, go to the Build menu in Visual Studio and select Rebuild Solution. This will compile your code and create a new executable file that includes your latest changes.
To redeploy the app to the emulator, you can either press F5 or click the Run button in Visual Studio. This will launch the app and deploy it to the emulator.
If you have already tried rebuilding the project and redeploying the app, and you are still not seeing your changes, it is possible that there may be an issue with your build configuration or emulator setup. You may want to try creating a new emulator or checking your build settings to ensure that the changes are being deployed correctly.
Tuhin PaulPosted Apr 12, 2023, 3:23 AM
When you make changes to your XAML code, you need to rebuild the project and redeploy the app to the emulator in order to see the changes take effect.