question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: newtonsoft.json library it referenced did not contain a reference to monotouch.droid.

See original GitHub issue

Xamarin project made a .net standard(1.4) shared project and tried referencing this library from it. I tried making a build which said that the newtonsoft.json library it referenced did not contain a reference to monotouch.droid.

Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly ‘Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, …’. Perhaps it doesn’t exist in the Mono for Android profile? File name: ‘Newtonsoft.Json.dll’ at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver resolver, ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel) at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver resolver) SmartHotel.Clients.Android

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bezysoftwarecommented, Sep 3, 2018

I tried to upgrade the Rx extensions to v4, but this broke the .net native UWP pipeline in my other project (it simply froze). Until this is resolved it will need to stay on 3.1.1

1reaction
cabaumancommented, Jul 20, 2018

Okay, that’s the problem. This library is targeting System.Reactive 3.1.1. So you have two options:

  1. Downgrade to System.Reactive 3.1.1
  2. Install System.Reactive.Compatibility
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load assembly 'Newtonsoft.Json. Perhaps it ...
This error happens at compile-time when you have the Newtonsoft.Json NuGet Package installed in the .NET Standard project and do not have it ......
Read more >
c# - Unable to add Json.Net to Portable Class Library with ...
When I attempt to manually add a reference to the NewtonSoft library included with MvvmCross, I get a compile-time error that says: "The...
Read more >
Using Newtonsoft.Json in a Visual Studio extension
It makes sure that when an assembly references a version of Newtonsoft.Json that is older than 8.0.0.0, it automatically redirects to use the ......
Read more >
Unable to compile Xamarin.Android project in VS 2022 ...
I'm updating a web site and associated mobile app. The web site is going from .NET 4.6 to .NET 6. The mobile app...
Read more >
Json.NET - Newtonsoft
World-class JSON Serializer · LINQ to JSON. Create, parse, query and modify JSON using Json.NET's JObject, JArray and JValue objects. ; High Performance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found