Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.Forms Tasks don't match targets

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 : enter image description here

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

like image 268
Mimma Avatar asked Mar 06 '23 06:03

Mimma


2 Answers

Issue with my project was that, Project.Android and Project.iOS's Nu Get packages Xamarin.Forms's versions were different, so I had to update all Xamarin.Forms library in each project to the same version.

Clean, Build and it solved the issue.

like image 111
Elmer Avatar answered Mar 08 '23 20:03

Elmer


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

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

EDIT:
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:

  • Delete all /bin, /obj and /packages folders within the solution
  • Check csproj files for duplicated Xamarin Forms references
  • Re-add Xamarin Forms NuGet packages
like image 25
EvZ Avatar answered Mar 08 '23 19:03

EvZ