Compiling error: Fody - missing AssemblyPath for ModuleWeaver

Topics: Issues / bugs
Aug 15, 2012 at 7:46 AM

Hi Geert,

I want to compile the current catel source.
Unfortunately this seems to fail with the Fody tool. 
When I try to compile the Project Catel.Core.NET35 an exception from Fody is thrown:

Fehler 2 Fody: An unhandled excepiton occured:Exception:ModuleWeaver enthält keine Definition für AssemblyPath.StackTrace:   bei CallSite.Target(Closure , CallSite , Object , String )   bei System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)   bei WeaverInitialiser.SetAssemblyPath(Object instance) in d:\BuildAgent-01\work\f05c4749eee8ee8f\FodyIsolated\WeaverInitialiser.cs:Zeile 282.   bei WeaverInitialiser.SetProperties(WeaverEntry weaverEntry, Object weaverInstance) in d:\BuildAgent-01\work\f05c4749eee8ee8f\FodyIsolated\WeaverInitialiser.cs:Zeile 46.   bei WeaverInitialiser.SetProperties(WeaverEntry weaverEntry) in d:\BuildAgent-01\work\f05c4749eee8ee8f\FodyIsolated\WeaverInitialiser.cs:Zeile 33.   bei WeaverInitialiser.Execute() in d:\BuildAgent-01\work\f05c4749eee8ee8f\FodyIsolated\WeaverInitialiser.cs:Zeile 21.   bei InnerWeaver.Execute() in d:\BuildAgent-01\work\f05c4749eee8ee8f\FodyIsolated\InnerWeaver.cs:Zeile 37.Source:Anonymously Hosted DynamicMethods AssemblyTargetSite:System.Object CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, System.Object, System.String) Catel.Core.NET35 

 

What can I do?

thanks, alex.

Aug 15, 2012 at 3:04 PM

After disabling Fody using the VS extensions for all catel projects, I can compile the code without errors.

Coordinator
Aug 20, 2012 at 7:47 AM

Interesting, I will investigate this. You are using VS2012 (pro version) to compile?

Aug 21, 2012 at 5:28 AM

No, I am using VS2010.

Sep 30, 2012 at 2:14 PM

should be fixed in 1.3

https://github.com/SimonCropp/Fody/issues/21