将Amazon S3 Nuget与Xamarin Android App结果包含在FileNotFoundException中

时间:2016-11-23 20:09:10

标签: c# amazon-s3 xamarin.android nuget

当我将Amazon S3 Nuget软件包添加到我的xamarin android应用程序时,我收到以下错误,

zlib=no

知道如何解决这个问题吗?

尼克。

更新:刚刚尝试使用Windows 10 Universal App,我得到了这个,

Severity    Code    Description Project File    Line    Suppression State
Error       Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Net.Http.Primitives.dll'
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
   at Xamarin.Android.Tasks.ResolveAssemblies.Execute() ContentUpdater  

S3库是否已损坏?

1 个答案:

答案 0 :(得分:2)

有点晚了,但我设法解决了这个问题。

  1. 卸载所有AWSSDK nugets
  2. 首先添加Microsoft.Net.Http nuget
  3. 添加AWSSDK.Core,S3,然后添加Cognito +您需要的任何其他内容