You will need to reference reRestSharp and Newtonsoft.Json in the app project as well, or else they do not end up in the final build.
Jonathan On 12/14/2011 11:11 AM, eshy wrote: > Hi, > > I created two projects, a core project where I make server calls and the > android app project which refernces the core project. > In the core project, I reRestSharp and Newtonsoft.Json (monodroid versions > of both) > > Everything builds fine but when I tried to deploy to a device, I get the > following exceptions: > > C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(2,2): > Error: Exception while loading assemblies: System.IO.FileNotFoundException: > Could not load assembly 'Newtonsoft.Json.MonoDroid, Version=4.0.0.0, > Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for > Android profile? > > File name: 'Newtonsoft.Json.MonoDroid.dll' > > at Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference > reference, ReaderParameters parameters) > > at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 > assemblies, AssemblyDefinition assembly) > > at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 > assemblies, AssemblyDefinition assembly) > > at Xamarin.Android.Tasks.ResolveAssemblies.Execute() > > > Anyone has any idea on the reason for this? > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Third-party-assemblies-not-found-wehn-deploying-tp5075092p5075092.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid