Build fails if there are no weavers configured.
See original GitHub issueHello.
It is very possible this is not a bug.
I have a Common project which will contain MethodDecorators for MethodDecorator weaver, so it had installed Fody nuget package in it as a dependency for MethodDecorator. But it will not use any weavers.
If I delete FodyWeavers.xml build fails with message:
MSBUILD : error : Fody: No configured weavers. It is possible you have not installed a weaver or have installed a fody weaver nuget into a project type that does not support install.ps1. You may need to add that weaver to FodyWeavers.xml manually. eg. <Weavers><WeaverName/></Weavers>. see https://github.com/Fody/Fody/wiki/SampleUsage [d:\Repos\eVote\Serve
r\Common\Common.csproj]
If I make it empty it’ll fail with similar message. If I specify MethodDecorator (as I have it installed) it fail build with message “No decorators, etc”.
I have a workaround: to remove Fody’s Tasks from project. But this is not good and can lead to problems while upgrading package.
My proposal is to have MsBuildProperty something like “SkipFody” to be able to write Fody-specific code without using it in place.
Regards, Anatoly.
Issue Analytics
- State:
- Created 7 years ago
- Comments:26 (10 by maintainers)
Top Results From Across the Web
Error Fody: No weavers found. Add the desired ...
In my case, FodyWeavers.xml is already exists because the PropertyChanged.Fody library was installed. if this file exists, just add <Costura /> ...
Read more >Build completed with a result of 'Failed'
After a failed build if I try to build again it works. The console says 2-3 errors but there no others informations. What...
Read more >Troubleshooting CloudFormation - AWS Documentation
If AWS CloudFormation fails to create, update, or delete your stack, you can view error messages or logs to help you learn more...
Read more >Building a Fody plugin - pt II - Michiel Sioen
Inside of this file you define which weavers should be executed at build time, what configuration they should use and in which order...
Read more >Weaver: qt6-webengine browser w/ minimal UI (Page 8) ...
When I try to compile it gives me error about include lines, QtWidgets not found, and if I comment out that line it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I had the same issue too. I solved it by adding
<Costura />in FodyWeavers.xml between the<Weavers>tags.I am experiencing the same issue, uninstalling and reinstalling several times did not fix the issue.