尝试运行 MvvmCross Fractal 示例时,我在以下位置收到 Mvx.Resolve 异常:
private void HackSetDisplayDimensions()
{
// Exception here
var disp = (DisplayDimensionsService) Mvx.Resolve<IDisplayDimensionsService>();
...
}
例外:
Cirrious.CrossCore.Exceptions.MvxException: Failed to resolve type
FractalGen.Core.Services.PlatformSpecific.IDisplayDimensionsService
这是来自 NuGet 的最新MvvmCross-Tutorials和 MvvmCross。