I am trying out Fody for a Xamarin Forms app. However, I keep getting the following issue
Now I tried the same code in a .NET console app and everything works like a charm.
Looking into the source code for MethodDecorator.Fody, it seems to be an issue with the following line in Reference.cs
public ReferenceFinder(ModuleDefinition moduleDefinition) {
this.moduleDefinition = moduleDefinition;
var mscorlibAssemblyReference = moduleDefinition.AssemblyReferences.First(a => a.Name == "mscorlib"); //Issue here
this.mscorlib = moduleDefinition.AssemblyResolver.Resolve(mscorlibAssemblyReference).MainModule;
}
Any pointers as to what I am doing wrong? I have attached the sample project here
