MVVMCross update error: does not contain a definition for 'EndingWith' and no extension method 'EndingWith'

MVVMCross update error: does not contain a definition for 'EndingWith' and no extension method 'EndingWith'

我正在使用 Visual Studio 2013 开发 Windows 通用应用程序。

我刚刚在我的解决方案中通过 nuget 和 App.cs 升级了 MVVMCross,下面的方法过去没有问题

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

        RegisterAppStart<ViewModels.StartViewModel>();
    }
}

但是在升级后我得到以下错误

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

EndingWith 是否贬值或是否有一种新的方式来初始化 Service 类?

你只需要添加一个引用 using MvvmCross.Platform.IoC; 就可以使用它。