I want to launch a project from a studio in a studio, but it doesn’t work.
Unity3D + Newtonsoft.Json + System.ServiceModel.Web
The project itself: https://yadi.sk/d/ZRlS2j28r7d9g
Create a new Unity project. I add integration with vision studio to the project. Asset - import vs tools. I add to the project dll \ New Unity Project testttt \ Assets \ plugins \ Newtonsoft.Json.dll \ New Unity Project testttt \ Assets \ plugins \ System.ServiceModel.Web.dll
The script does not work.
using UnityEngine; using System.Collections; using System.IO; using System.Runtime.Serialization.Json; public class NewBehaviourScript : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } } public static class X { public static void JSON_SerializeObjToFile(this object obj, string filename) { var ser_json = new DataContractJsonSerializer(obj.GetType()); using (FileStream fs = new FileStream(filename, FileMode.Create)) { ser_json.WriteObject(fs, obj); } } } Severity Code Description Project File String Suppression State Error CS0012 The type "XmlWriter" is defined in an assembly to which there is no reference. You should add a link to the assembly "System.Xml, Version = 2.0.5.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e". New Unity Project testttt.CSharp
Severity Code Description Project File String Suppression Status Error CS0012 The type "XmlDictionaryWriter" is defined in an assembly to which there is no reference. You should add a link to the assembly "System.Runtime.Serialization, Version = 2.0.5.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e". New Unity Project testttt.CSharp
Severity Code Description Project File String Suppression State Error CS0012 The type "XmlObjectSerializer" is defined in an unrelated assembly. You should add a link to the assembly "System.Runtime.Serialization, Version = 2.0.5.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e". New Unity Project testttt.CSharp
Severity Code Description Project File String Suppression State Error `NewBehaviourScript.JSON_SerializeObjToFile (this object, string) ':" New Unity Project testttt "(Projects: 1) Assets / NewBehaviourScript. cs
Vizhl studio proposes to add two links but when clicked, they are not added.