2
votes

When i try to run the Xamarin IOS application from Windows to Mac machine. I get the following error.

  • Can not resolve reference: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Tasks.Extensions.dll

System.Threading.Tasks.Extensions.dll file does not exist under current directory in Mac machine.

1

1 Answers

1
votes

Well this is the mess that I go through every now and then and it's very annoying but I guess the following steps will solve it for you:

  • Check whether or not you are actually using System.Threading.Tasks.Extensions.dll, You can do that by checking your project references.

  • If you are using this(probably as a dependency of some NuGet package), I would suggest you go to the path in your question and check if the dll is present.

  • If it is, then just reference it by going to your Project>Reference>Add Reference and go to the path and add it.

  • If the dll is not available at that location I would suggest you check the version of the current dll and just remove and install it from NuGet.

  • In case the dll reference is unused in your project, then just unload the project, Edit the csproj file and remove all References for System.Threading.Tasks.Extensions

In case this doesn't work feel free to revert.