Error Fody: No weavers found. Add the desired weavers via their nuget package

gbcga97 picture gbcga97 · May 8, 2019 · Viewed 11.2k times · Source

I have already installed Fody in my application several and several times but still this error appears below, could anyone tell me why it happens? I use the latest version of Visual Studio and latest version of Framework

enter image description here

Answer

Pavel Kovalev picture Pavel Kovalev · May 9, 2019

Sometimes (for unknown reason) FodyWeavers.xml cannot be added automatically when the package is added. You'll need to add it to the root of the project manually:

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

I'm using Fody 4.2.1 and Costura.Fody 3.3.3

I hope it helps 😊