亚马逊网络服务和带有xamarin.forms的UWP?
问题描述:
我实现了aws认知身份并同步到我的xamarin.forms项目中。一切工作正常在Android上。我想试试uwp应用程序。瞬间我得到了一个例外如下。这是否意味着AWS不支持Pcl实现,但它应该天真地实现并引用依赖注入?亚马逊网络服务和带有xamarin.forms的UWP?
AWSSDK.Core.dll but was not handled in user code
Additional information: This functionality is not implemented in the
portable version of this assembly.
You should reference the AWSSDK.Core NuGet package from your main
application project in order to reference the platform-specific implementation.
我已经安装了以下两个UWP和XF nugets项目
答
瞬间我有一个例外,如下。
当您添加nuget包时,Nuget会安装不同版本的dll(您可以在C:\Users\<username>\.nuget\packages\AWSSDK.Core\<version>\lib
下找到它们)。并取决于你的项目类型,nuget决定,应该为你的项目引用哪个dll。从错误消息中,您正在使用的功能不包括在便携式版本的dll中。
这是否意味着AWS不支持Pcl实现,但它应该天真地实现并引用依赖注入?
是的。由于Pcl版本的dll不具备此功能,因此您需要使用依赖注入本地实现它。
这是AWS的又一次失望。我仔细阅读了他们关于xamarin的所有文档,并且在他们的文档中没有任何地方,他们强调PCL不支持UWP和WP8.1。 – batmaci