当我将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
有什么办法可以解决这个问题吗?
Nick。
更新:我刚试着在Windows 10通用应用程序上做了同样的操作,结果得到了这个:
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库是破了还是怎么了?