错误提示:未找到织工。通过他们的nuget包添加所需的编织者

gbc*_*a97 8 c# visual-studio nuget fody fody-costura

我已经在应用程序中多次安装了Fody,但是仍然在下面显示此错误,有人可以告诉我为什么会发生吗?我使用最新版本的Visual Studio和最新版本的Framework

在此处输入图片说明

Pav*_*lev 19

有时(由于未知原因)FodyWeavers.xml在添加包时无法自动添加。您需要手动将其添加到项目的根目录:

<?xml version="1.0" encoding="utf-8"?>
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
  <Costura />
</Weavers>
Run Code Online (Sandbox Code Playgroud)

我正在使用Fody 4.2.1Costura.Fody 3.3.3

我希望它有帮助


Ego*_*per 5

就我而言,FodyWeavers.xml已经存在,因为安装了PropertyChanged.Fody库。如果该文件存在,只需添加<Costura />到其中即可。

<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
  <PropertyChanged />
</Weavers>
Run Code Online (Sandbox Code Playgroud)

<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
  <PropertyChanged />
  <Costura />
</Weavers>
Run Code Online (Sandbox Code Playgroud)