c# - Automapper starting exception in Windows 8.1 Unified project -
i have cross-platform project, using mvvmcross , stuff. right now, solution consists of core , windows phone projects.
core contains automapper reference, , wp project contains automapper , automapper.wpa references.
application works fine in cases, throws exceptions could not load file or assembly 'automapper.net4'
. how can explain stupid automapper use automapper.wpa, referenced project? i'm using
public static class automapperconfig { static automapperconfig() { mapper.createmap<mydbmodel, mydto>(); mapper.addprofile<myprofile>(); // other mappings stuff } public static void initialize() { mapper.assertconfigurationisvalid(); } }
and i'm calling setup, in shared project,
public class setup : mvxwindowssetup { public setup(frame rootframe) : base(rootframe) { automapperconfig.initialize(); } *** }
is happening while debugging? if so, you're showing exceptions, instead of uncaught exceptions. switch uncaught-exceptions , should good.
the 4.0 release of stupid automapper moving away platform-specific extension assemblies , instead doing compiler directives compile single assembly per platform.
Comments
Post a Comment