Xamarin.Forms任务与目标不匹配 [英] Xamarin.Forms Tasks don't match targets

查看:76
本文介绍了Xamarin.Forms任务与目标不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中工作得很好,将Xamrain.Forms更新为3.0后,突然出现了以下错误:

I was working fine with in my project ,the once I updated my Xamrain.Forms to 3.0, all of a sudden I got this error :

有人遇到这个问题吗?谢谢,我有点迷路了.

Has anyone come across this issue? I'm kinda lost here, thanks .

推荐答案

请确保所有项目都引用相同版本的 Xamarin.Forms

Please ensure that all projects reference the same version of Xamarin.Forms

因此,请确保上述声明正确无误,请清理解决方案,以防万一之后重新启动Visual Studio.

So make sure that the statement above is correct, clean your solution and just in case restart the Visual Studio after that.


升级到Xamarin Forms 3.0后,这似乎是一个非常受欢迎的问题,如果上述步骤仍无法解决,请考虑:


It seems to be a quite popular issue after upgrading to Xamarin Forms 3.0, if the steps above didn't resolve it please consider:

  • 删除解决方案中的所有/bin/obj/packages文件夹
  • 检查csproj文件中是否存在重复的Xamarin表单引用
  • 重新添加Xamarin Forms NuGet软件包
  • Delete all /bin, /obj and /packages folders within the solution
  • Check csproj files for duplicated Xamarin Forms references
  • Re-add Xamarin Forms NuGet packages

这篇关于Xamarin.Forms任务与目标不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆