Hi,
I just found NCrunch doesn't work with Fody, while Resharper works just fine.
For those not familiar with Fody, Fody is made by the same author as Notify Property Weaver. It "uses Mono.Cecil and an add-in based approach to modifying the IL of .net assemblies at compile time". More about Fody:
*
http://code.google.com/p/fody/*
http://visualstudiogallery.msdn.microsoft.com/074a2a26-d034-46f1-8fe1-0da97265eb7aSteps to reproduce the issue:
1. Install Fody;
2. Create a new project;
3. Select the project file in Solution Explorer, then Menu > Project > Fody > Enable;
4. Enable NCrunch;
5. Got the following errors:
[06:06:05.0221-BuildTask-41] ERROR (Compilation): ClassLibrary1.Fody: M:\NCrunch\5208\39\Tools\Fody\Fody.targets (14): The "Fody.WeavingTask" task could not be loaded from the assembly M:\NCrunch\5208\39\Tools\Fody\\Fody.dll. Could not load file or assembly 'file:///M:\NCrunch\5208\39\Tools\Fody\Fody.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I remember I got a similar issue when I try to open a project in Expression Blend, if Blend failed to open the solution (that is, only opened the target project), I got a error that Blend cannot find (
project path)\Tools\Fody\Fody.dll.
I think both NCrunch and Blend looked at the wrong location, it seems both of them are looking for (
project path)\Tools\Fody\Fody.dll, but actually the Fody.dll file is located at (
solution path)\Tools\Fody\Fody.dll.
My system configurations:
NCrunch 1.40.0.23b
Fody 0.18.0.0
Visual Studio 2010
Windows 7 64bit