我只是将我的解决方案从 3.0.9 升级到 3.0.13。一切似乎运作良好。非常感谢 MvvmCross 团队在这个伟大的框架上的持续努力。
我在用 IMvxLocationWatcher 替换现在已贬值的 IMvxGeoLocationWatcher 时遇到了一个小问题。这些依赖构造函数注入来获取 IMvxLocationWatcher 实例的服务现在正在抛出 System.TypeLoadException,如下所示:
System.TypeLoadException: Could not load type 'MyApp.Core.ViewModels.ProgressListViewModel' from assembly 'MyApp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
10-17 02:56:24.447 E/mono ( 2833): at (wrapper managed-to-native) System.Type:type_is_assignable_from (System.Type,System.Type)
10-17 02:56:24.447 E/mono ( 2833): at System.Type.IsAssignableFrom (System.Type c) [0x00000] in <filename unknown>:0
10-17 02:56:24.447 E/mono ( 2833): at Cirrious.MvvmCross.ViewModels.MvxViewModelByNameLookup.<BuildViewModelLookup>b__5 (<>f__AnonymousType3`2 <>h__TransparentIdentifier0) [0x00000] in <filename unknown>:0
The program 'Mono' has exited with code 0 (0x0).
10-17 02:56:24.447 E/mono ( 2833): at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator33`1[<>f__AnonymousType3`2[System.Reflection.Assembly,System.Type]].MoveNext () [0x00000] in <filename unknown>:0
我错过了什么?
再次感谢。