本文介绍了Xamarin-无法加载程序集'PCLStorage.Abstractions的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将FlurlHttp Nuget软件包添加到我的PCL项目中之后,由于程序集加载错误,我的应用将不再部署到我的模拟器中

After adding the FlurlHttp Nuget package to my PCL project my app will no longer deploy to my emulator due to an assembly loading error

构建系统也在报告冲突:

The build system is also reporting conflicts :

"PCLStorage.Abstractions,版本= 0.9.6.0,文化=中性,PublicKeyToken = 286fe515a2c35b64"和"PCLStorage.Abstractions,版本= 1.0.0.0,文化=中性,PublicKeyToken = 286fe515a2c35b64"之间存在冲突. (TaskId:142) 2>选择"PCLStorage.Abstractions,版本= 0.9.6.0,文化=中性,PublicKeyToken = 286fe515a2c35b64",因为它是主要的,而未选择"PCLStorage.Abstractions,版本= 1.0.0.0,文化=中性,PublicKeyToken = 286fe515a2c35b64". (TaskId:142)

There was a conflict between "PCLStorage.Abstractions, Version=0.9.6.0, Culture=neutral, PublicKeyToken=286fe515a2c35b64" and "PCLStorage.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=286fe515a2c35b64". (TaskId:142) 2> "PCLStorage.Abstractions, Version=0.9.6.0, Culture=neutral, PublicKeyToken=286fe515a2c35b64" was chosen because it was primary and "PCLStorage.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=286fe515a2c35b64" was not. (TaskId:142)

在将Microsoft.Build.Async (1.0.168)Microsoft.Bcl.Build(1.0.21)Microsoft.Net.Http(2.2.29)Microsoft.Bcl (1.1.10) nuget程序包添加到我的程序包后,出现了这些错误PCL项目,Xamarin表单项目和Xamarin Droid项目.

These errors appeared after adding the Microsoft.Build.Async (1.0.168), Microsoft.Bcl.Build(1.0.21), Microsoft.Net.Http(2.2.29), Microsoft.Bcl (1.1.10) nuget packages to myPCL project, Xamarin forms project and Xamarin Droid project.

此外,使用了Nuget包Xamarin.Forms.Maps (v2.1.0.6508)Xamarin.Forms (v2.1.0.6508-pre3).

In addition, the Nuget packages Xamarin.Forms.Maps (v2.1.0.6508) and Xamarin.Forms (v2.1.0.6508-pre3) are used.

推荐答案

向PCL项目中添加nuget包PclStorage v1.0.2可以解决警告和部署错误.

Adding the nuget package PclStorage v1.0.2 to the PCL project resolves both warnings and the deployment error.

我不确定为什么存在这种依赖性.

I'm not sure why this dependency is there.

这篇关于Xamarin-无法加载程序集'PCLStorage.Abstractions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-14 21:21