“Fody not properly installed” error exception. (Xamarin.forms)

后端 未结 1 566
南旧
南旧 2021-01-26 15:21

I\'m making app with using Xamarin.forms. (PCL Project)

Today, I added new three solution packages named SVG.Forms.Plugin.Abstractions, SVG.Forms.Plugin.iOS, SVG.Forms.P

相关标签:
1条回答
  • 2021-01-26 16:01

    Better Answer The check which is delivering that message is because Fody is not running.

    So, they may have a RealmObject in their component but Fody doesn't get run building in your solution so weaving doesn't occur.

    The easiest fix is to just use NuGet to add Fody to your main application project. That should install it in the right place for the solution.

    Background NuGet manages dependencies so if a package relies on Realm, it will go on in turn and install Realm. Realm itself relies on Fody, for example, so will in turn trigger a Fody installation.

    You can manually install Realm but it is a little fiddly, having to add a couple of lines to your csproj to specify imports. We have chosen to only document installation via NuGet at this stage.

    If you want to manually add Realm to another solution without using NuGet, I suggest you take a new clean solution, save a copy, and diff with the changes made to that solution by adding Realm via NuGet. You will then see the lines to copy into your existing solution.

    0 讨论(0)
提交回复
热议问题