MvvmCross.Plugin.Location.Fused 5.6.3与netstandard2.0不兼容

时间:2018-02-11 18:50:24

标签: .net mvvmcross

我正在使用MvvmCross 5.6.3 我尝试添加MvvmCross.Plugin.Location.Fused 5.6.3。
包管理器的输出:

Package 'MvvmCross.Plugin.Visibility 5.6.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
Package 'PCLStorage 1.0.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
Package MvvmCross.Plugin.Location.Fused 5.6.3 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package MvvmCross.Plugin.Location.Fused 5.6.3 supports: monoandroid (MonoAndroid,Version=v0.0)
Package restore failed. Rolling back package changes for'DigitalWorkReport.Core'.
Time Elapsed: 00:00:00.2757496
========== Finished ==========  

问题:
1.如何添加MvvmCross.Plugin.Location.Fused 5.6.3?
2. MvvmCross 5.6.3的正确目标框架是什么? 3. MvvmCross的.NET依赖关系定义在哪里?

谢谢你, 马克

1 个答案:

答案 0 :(得分:1)

MvvmCross.Plugin.Location.Fused专门针对Android,它依赖于Android平台特定的库。因此,您不应该(也不能)将其安装到.NET标准库中。而是将其安装到Android项目中,然后将MvvmCross.Plugin.Location安装到所有项目中。