StaticProxy.Fody
StaticProxy.Fody copied to clipboard
Fody not finding weaver?
I'm attempting to use this in conjunction with Ninject.Extensions.StaticProxy so that I can use Factories in a Xamarin.iOS application.
I installed Ninject.Extensions.StaticProxy, StaticProxy.Fody, and StaticProxy.Interceptor into my main Xamarin project (the common project). I have Realm already installed, so I already have a FodyWeavers.xml
file in the project. I added [StaticProxy]
to all my factory interfaces, but if I run the app, I get a runtime exception stating "There is no auto-generated implementation for interface [my interface]". I figured this was because the weaver was not in my FodyWeavers.xml
file, so I tried manually adding <StaticProxy />
to it, but then I get a compile error: "Fody: No weavers found for the configuration entries StaticProxy. Add the desired weavers via their nuget package."
Why isn't Fody able to find the weaver?