I want to save my level files to .json files in the Unity assets folder. Due to the limited features of JsonUtility
I want to use Json.NET. 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
Install a Nuget package in Visual Studio Code
First I used this command in the terminal
dotnet add package Newtonsoft.Json
but I got this error
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.
After that I installed the Nuget extension and installed Newtonsoft.Json@12.0.2 to my project. I was prompted to run dotnet restore
to be able to use the package.
After doing so I got this error
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
So what is the correct way to install third party tools using Visual Studio Code with Unity?