2016-12-06 59 views
0

我實現了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項目

enter image description here

回答

1

瞬間我有一個例外,如下。

當您添加nuget包時,Nuget會安裝不同版本的dll(您可以在C:\Users\<username>\.nuget\packages\AWSSDK.Core\<version>\lib下找到它們)。並取決於你的項目類型,nuget決定,應該爲你的項目引用哪個dll。從錯誤消息中,您正在使用的功能不包括在便攜式版本的dll中。

這是否意味着AWS不支持Pcl實現,但它應該天真地實現並引用依賴注入?

是的。由於Pcl版本的dll不具備此功能,因此您需要使用依賴注入本地實現它。

+0

這是AWS的又一次失望。我仔細閱讀了他們關於xamarin的所有文檔,並且在他們的文檔中沒有任何地方,他們強調PCL不支持UWP和WP8.1。 – batmaci