Started with a new project in VS2017 from Prism template. Added PropertyChanged.Fody nuget package (and the xml file) - ran the basic project and all fine.
Add the Realm nuget (adding the
<RealmWeaver /> line to the FodyWeavers file).
Now when I deploy and run the app on Android emulator the app crashes on startup with the following output:
Could not load assembly 'System.Runtime.CompilerServices.Unsafe' during startup registration.
This might be due to an invalid debug installation.
A common cause is to 'adb install' the app directly instead of doing from the IDE.
Now I am pretty sure this is a VS/Xamarin issue, not a Realm issue, but the only clues I have been able to find on the net are in some github issues which are all a bit above me, and I wondered if anyone here had run into this issue and could give me a fix or workaround in plain English?
For example, https://developercommunity.visualstudio.com/content/problem/152947/xamarin-android-run-error-could-not-load-assembly.html - I tried changing the Linker options and my Nuget is set to use packages.config and no luck but its all a bit in-depth.