Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Cannot reference System.Runtime.Serialization in Unity project

Discussion in 'Scripting' started by boby-bobs, Aug 4, 2015.

  1. boby-bobs

    boby-bobs

    Joined:
    Oct 18, 2013
    Posts:
    53
    I have a Unity C# project and I want to do some JSON stuff with System.Runtime.Serialization.Json.DataContractJsonSerializer;

    I know for a fact I need to include reference to System.Runtime.Serialization and that this works in a non-Unity c# project. But when I add it to my Unity project, Visual Studio does not seem to be able to find the namespace, and the Reference DLL in the References list has a warning sign on it. I also cannot double click the Reference DLL (it says the project is unavailable or is not built, and I cannot build it anyway!)/
     
  2. boby-bobs

    boby-bobs

    Joined:
    Oct 18, 2013
    Posts:
    53
    I just found out Unity uses .net 2.0.0