问题
I have usual MyApp.Core project. However, I also have General.Core project which includes some general code for apps and services shared through different projects (different mobile applications).
In General.Core project I have:
public abstract class App : MvxApplication
and also some service defined also on General.Core.
I also have
public abstract class SomethingApp : App
in MyApp.Core (and then in every of Touch, Droid - further inheritance).
However, when I try to get to my App from the service of General.Core project (the same as App) like that:
Mvx.Resolve<IMvxApplication>()
I get 'cannot resolve' exception. I am sure that's because of types names and different assemlies, but I don't know what and how I should Register (if I should) the app, because it's not just a common service.
Thank you!
来源:https://stackoverflow.com/questions/18497700/how-to-resolve-imvxapplication-which-inheritor-is-defined-in-separate-assembly