Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

FodyPackaging: No weaver found
MrPMorris
#1 Posted : Monday, March 16, 2026 10:56:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/11/2024(UTC)
Posts: 1
Location: United Kingdom

I wrote a Fody weaver that lets you set the ErrorMessageResourceType and ErrorMessageResourceName (convention) at project level, and it works great.

But when I try to run tests in NCrunch I see the following output

Quote:
NCrunch: If you are experiencing problems in getting this project to build, have a look at https://www.ncrunch.net/...ng_project-build-issues
..\..\..\..\..\..\..\Users\PeterMorris\.nuget\packages\fodypackaging\6.9.1\build\FodyPackaging.targets (8, 5): FodyPackaging: No weaver found at ..\Morris.AutoLocalize.Fody\bin\\\netstandard2.0\Morris.AutoLocalize.Fody.dll. Morris.AutoLocalize should have a Project Dependency on Morris.AutoLocalize.Fody, and Morris.AutoLocalize.Fody should target 'netstandard2.0'.


WARNING - ..\..\..\..\..\..\..\Users\PeterMorris\.nuget\packages\microsoft.sourcelink.common\8.0.0\build\Microsoft.SourceLink.Common.targets (53, 5): : Source control information is not available - the generated source link is empty.


The library is here - https://github.com/mrpmorris/AutoLocalize
Remco
#2 Posted : Monday, March 16, 2026 10:52:30 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,522

Thanks: 1021 times
Was thanked: 1369 time(s) in 1270 post(s)
Hi, thanks for sharing this issue.

Looking at the paths here, I think this is failing due to NCrunch's project atomicity constraints. You have a relative path that points to the output of another project in your solution, which under NCrunch is going to land at an undetermined location.

In most situations the 'Copy referenced assemblies to workspace' setting would solve this problem, but because weavers tend to happen at build time rather than run time, any build steps that copy the dependency into the project's output directory won't have run yet.

It's possible to add the weaver assembly to the 'Additional files to include' setting for the project, and in theory this will work around the problem, but it will require you to rebuild the weaver in your IDE every time you make changes to it (not ideal).

The ideal solution to this will come down to Fody's search logic at build time. Does introducing a project reference to the weaver resolve the issue?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download