BrunoJuchli / StaticProxy.Fody

Creating proxies at compile time.
15 stars 3 forks source link

Fody not finding weaver? #20

Open ArcanoxDragon opened 4 years ago

ArcanoxDragon commented 4 years ago

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?

BrunoJuchli commented 4 years ago

@briman0094 I haven't updated this project in a long time (not using it personally). Current Fody version won't work with it.

BrunoJuchli commented 4 years ago

@briman0094 I have unlisted and deprecated the nuget packages and will archive this repo. If you (or any one else) want to take the project over, you can contact me by e-mail.