I'm trying to use the code given by Postman to connect an API to my Unity project. The code uses RestSharp. I regenerated Embeded packages and Local packages project files. link to Unity/Preferences/External Tools/Generate .csproj files for: then installed RestSharp version 107.3.0 using NuGet package manager extension on Visual Studio Code. Then used dotnet restore because NuGet told me to. Now my "Assembly-CSharp.csproj" file has:
<PackageReference Include="RestSharp" Version="107.3.0"/>
But still, whenever I try to add:
using RestSharp;
line to my APITest.cs script, Unity says:
APITest.cs(4,7): error CS0246: The type or namespace name 'RestSharp' could not be found (are you missing a using directive or an assembly reference?)
What can I do to use RestSharp with Unity?