“未正确安装Fody"错误异常. (Xamarin.forms) [英] "Fody not properly installed" error exception. (Xamarin.forms)

查看:245
本文介绍了“未正确安装Fody"错误异常. (Xamarin.forms)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin.forms制作应用程序. (PCL项目)

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

今天,我在从github下载的工作区中添加了三个名为SVG.Forms.Plugin.Abstractions,SVG.Forms.Plugin.iOS,SVG.Forms.Plugin.Android的新解决方案包.

Today, I added new three solution packages named SVG.Forms.Plugin.Abstractions, SVG.Forms.Plugin.iOS, SVG.Forms.Plugin.Android on workspace that downloaded from github.

我已经为Xamarin使用了领域. 但是,在我添加了新程序包之后,"Realms.RealmException已抛出". 消息为未正确安装Fody.allbX.Baby是RealmObject,但尚未编织."

I have used realm for Xamarin. But After I added new packages, "Realms.RealmException has been thrown". Message is "Fody not properly installed. allbX.Baby is a RealmObject but has not been woven."

是Fody的问题还是Realm的或新软件包的(SGV控制)? 您能让我知道如何解决吗?

Is it Fody's problem or Realm's or new packages'(SGV Control)? And could you let me know how to solve it?

推荐答案

更好的答案 传递该消息的检查是因为Fody没有运行.

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

因此,他们的组件中可能包含RealmObject,但是Fody不会在您的解决方案中运行,因此不会发生 wedding .

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

最简单的解决方法是仅使用NuGet将Fody添加到您的主应用程序项目中.那应该将它安装在解决方案的正确位置.

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.

背景 NuGet管理依赖项,因此,如果软件包依赖Realm,它将依次打开并安装Realm.例如,Realm本身依赖于Fody,因此反过来会触发Fody安装.

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.

您可以手动安装Realm,但是有点麻烦,必须在csproj中添加几行来指定导入.在此阶段,我们选择仅通过NuGet进行文档安装.

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.

如果要在不使用NuGet的情况下将Realm手动添加到另一个解决方案,建议您采用一个全新的解决方案,保存副本,并通过通过NuGet添加Realm来区分对该解决方案所做的更改.然后,您将看到要复制到现有解决方案中的行.

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.

这篇关于“未正确安装Fody"错误异常. (Xamarin.forms)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆