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

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



Solution 1:[1]

In my case, FodyWeavers.xml is already exists because the PropertyChanged.Fody library was installed. if this file exists, just add <Costura /> to it.

Before

<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
  <PropertyChanged />
</Weavers>

After

<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
  <PropertyChanged />
  <Costura />
</Weavers>

Solution 2:[2]

I had same issue on my Cake script using MSBuild command and I solved that:

a) Applying EgoistDeveloper above tip
b) Cleaning ./bin and ./obj folder of all projects under my solution folder
c) Adding -t:Clean,Restore,... msbuild parameter command line

Solution 3:[3]

In my case, I FodyWeavers.xml already existed. I cut the file out of the folder and pasted it back in, and the error went away.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 EgoistDeveloper
Solution 2 EgoistDeveloper
Solution 3 AllRoadsLeadToRome