question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails if there are no weavers configured.

See original GitHub issue

Hello.

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:closed
  • Created 7 years ago
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

9reactions
Dentaxcommented, Jul 2, 2017

I had the same issue too. I solved it by adding <Costura /> in FodyWeavers.xml between the <Weavers> tags.

3reactions
eberkundcommented, Apr 7, 2017

I am experiencing the same issue, uninstalling and reinstalling several times did not fix the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found