MVVMCross更新错误:不包含'EndingWith'的定义,也没有扩展方法'EndingWith'

Put*_*aKg 1 c# cross-platform mvvmcross

我正在使用Visual Studio 2013开发Windows Universal App.

我刚刚在我的解决方案中通过nuget和App.cs升级了MVVMCross,以下方法用于工作而没有问题

  public class App : MvxApplication
{
    public override void Initialize()
    {
        CreatableTypes()
            .EndingWith("Service")
            .AsInterfaces()
            .RegisterAsLazySingleton();

        RegisterAppStart<ViewModels.StartViewModel>();
    }
}
Run Code Online (Sandbox Code Playgroud)

但升级后,我收到以下错误

Error   2   'System.Collections.Generic.IEnumerable<System.Type>' does not contain a definition for 'EndingWith' and no extension method 'EndingWith' accepting a first argument of type 'System.Collections.Generic.IEnumerable<System.Type>' could be found (are you missing a using directive or an assembly reference?) D:\Users\Vicky\OneDrive\Dev\WUA\KpopQuiz.Core\KpopQuiz.Core\App.cs  11  18  KpopQuiz.Core
Run Code Online (Sandbox Code Playgroud)

是EndingWith折旧还是有新的初始化方法Service?

Mar*_*n00 5

您只需添加一个引用using MvvmCross.Platform.IoC;即可使用它.