Sometime, you might not be lucky in developing an app or system with .NET and Xamarin Framework, and stocked with “File Not Found” Exception, even you installed them correctly via reference and NuGet package system.
Same to me, and this solution solved the problem for me.
Example of Problem
My case is about Newtonsoft.Json (aka Json.Net) that is very popular to be used in parsing the JSON data from Web API.
Here is my exception.
System.IO.FileNotFoundException: Could not load file or assembly: Newtonsoft.Json, Version=188.8.131.52, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies.
- Close Visual Studio or Xamarin Studio
- Remove following folders from your solution
- Open your Solution with Visual Studio or Xamarin Studio again
- Wait for the program restore your packages
I hope this can help you out the problem as It did for me.