I followed this tutorial on using external libraries in Godot and did manage to get it to work with the Newtonsoft.Json package the guy used in the video. The tutorial tells you to just reference the .dll in the .csproj file like this:
<Reference Include="Newtonsoft.Json">
<HintPath>$(ProjectDir)\lib\Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
I then tried the same thing with this package for the Kinect. I can have the line using Microsoft.Kinect;
in my scripts without errors and autocomplete is working, but as soon as I actually mention anything from this sdk in the class, such as private KinectSensor sensor = null;
, I get these errors when building the game:
I do have the kinect sdk installed and that's working fine. I also read through the documentation on binding external libraries, but couldn't figure out how to get a static library from the .dll file that I got from NuGet.