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

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

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  

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

缺口.

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

Severity    Code    Description Project File    Line    Suppression State
Error       Cannot resolve Assembly or Windows Metadata file 'System.Net.Http.Primitives.dll'   WindowsContentUpdater   C:\devoctomy\GitHub\ContentUpdater\WindowsContentUpdater\WindowsContentUpdater.csproj   

S3库是否已损坏?

解决方法:

有点晚了,但我设法解决了.

>卸载所有AWSSDK nugets
>首先添加Microsoft.Net.Http nuget
>添加AWSSDK.Core,S3,然后添加Cognito,无论您需要什么

上一篇:c# – NuGet包拒绝在.NET Core库中卸载


下一篇:vs使用nuget安装openssl