Resolving Runtime Reference Errors in Xamarin.Android Native Project After .NET 7 Migration
Hello,
I'm seeking assistance with an issue we're encountering in our Xamarin.Android native project (not Xamarin.Forms). Our project is quite large, comprising an Android app project along with multiple Android library projects and class libraries, all referenced within the Android app project. We utilize a microkernel architecture and heavily rely on reflection.
Since migrating our projects to .NET 7, we've faced significant challenges: references and DLLs are not being found at runtime. It seems that references not immediately used, but instead invoked later through reflection, are being erroneously removed before deployment. We've experimented with various linking options and ProGuard settings, but these efforts have not resolved the issue.
Any insights or suggestions from those with experience in this area would be greatly appreciated. Thank you !