Not using namespace after add reference

I am adding Json.Net component. But when I write
using Newtonsoft;
and compile the project, but there are no errors highlighted in red font Newtonsoft. I do not see the namespace Newtonsoft, why? Xamarin Studio have bug.


  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    Perhaps you meant to use "using Newtonsoft.Json;"?

  • PKLabPKLab USMember
    edited September 2013

    irrelevant. but I use a hacked version xamarin, may be that's the problem :))
    I promise I'll buy a license as I understand that it is really needed.

  • DaveHuntDaveHunt USMember ✭✭✭✭✭
    edited September 2013

    Given that there is no Newtonsoft namespace, I'm pretty sure your using statement is the problem. From the Jason.NET API documentation, you will see only:

    Newtonsoft.Json, Newtonsoft.Json.Bson, Newtonsoft.Json.Converters, Newtonsoft.Json.Linq, Newtonsoft.Json.Schema, and Newtonsoft.Json.Serialization.

    So "using Newtonsoft;" will not work.

    At any rate, that is the last bit of assistance you will get from me, since you are using a hacked installation.

  • RonFreschiRonFreschi USUniversity ✭✭

    I've also added the Json.NET component to my project and cannot reference it. Tried deleting, re-adding etc.
    I am seeing red text for lines like these as well:
    using Newtonsoft.Json;
    var oJson = Newtonsoft.Json.Linq.JObject.Parse (json);

Sign In or Register to comment.