How to resolve IMvxApplication (which inheritor is defined in separate assembly (not Core one))?

∥☆過路亽.° 提交于 2019-12-25 05:37:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!