title: Install a Nuget package in Visual Studio Code for Unity
body: <p>I want to save my level files to .json files in the Unity assets folder. Due to the limited features of <code>JsonUtility</code> I want to use <a href="https://www.newtonsoft.com/json" rel="noreferrer">Json.NET</a>. I use Linux so I can't access Visual Studio and use Visual Studio Code instead. I wanted to add the package to my Unity project and took the guide from here</p>
  
  <p><a href="https://stackoverflow.com/questions/40675162/install-a-nuget-package-in-visual-studio-code">Install a Nuget package in Visual Studio Code</a></p>
  
  <p>First I used this command in the terminal</p>
  
  <pre><code>dotnet add package Newtonsoft.Json
  </code></pre>
  
  <p>but I got this error</p>
  
  <blockquote>
    <p>error: Error while adding package 'Newtonsoft.Json' to project
    '/.../myUnityProject/Assembly-CSharp.csproj'. The project does not
    support adding package references through the add package command.</p>
  </blockquote>
  
  <p>After that I installed the Nuget extension and installed Newtonsoft.Json@12.0.2 to my project. I was prompted to run <code>dotnet restore</code> to be able to use the package.</p>
  
  <p>After doing so I got this error</p>
  
  <blockquote>
    <p>MSBUILD : error MSB1011: Specify which project or solution file to use
    because this folder contains more than one project or solution file.</p>
  </blockquote>
  
  <p>So what is the correct way to install third party tools using Visual Studio Code with Unity?</p>