I need to call a specific function from Castle.Core.dll but it seems as though AutoMapper and Moq have Castle.Core merged into their assemblies.
This is what I need to call
Castle.DynamicProxy.Generators.AttributesToAvoidReplicating.Add(typeof(System.Security.Permissions.UIPermissionAttribute));
But I get an Ambiguous reference
because Castle.Core is technically available in 3 locations (AutoMapper, Moq, and the standalone DLL)
I can't simply un-ref any of the dlls because they are all managed by NuGet and Castle.Core standalone is needed for NHib and the other dlls are what were pulled in by the AutoMapper and Moq nuget packages.
Any suggestions? other then not depending on NuGet for managing my library refs?