microsoft / Azure-Kinect-Sensor-SDK

A cross platform (Linux and Windows) user mode SDK to read data from your Azure Kinect device.
https://Azure.com/Kinect
MIT License
1.5k stars 620 forks source link

Visual Studio Projects don't load after adding Body Tracking SDK via NuGet #1250

Closed redfood closed 2 years ago

redfood commented 4 years ago

Describe the bug

(I'm not sure if this is the correct place to report this problem since I think it is with that NuGet package).

I am using Visual Studio 2019. If I create a project and add the body tracking SDK via NuGet. I can compile and run my program file. If I close and then reopen the project the solution looks empty and it says "unloaded".

To Reproduce

  1. Open Visual Studio 2019
  2. Add the body tracking SDK via NuGet
  3. Create a command line c program that uses the body tracking SDK.
  4. Quit VS
  5. Reopen the "solution"

Expected behavior The solution would open.

Logs N/A

Desktop (please complete the following information):

Additional context I am able to get the project to load if I edit the .vcxproj file and delete the following lines:

<None Include="..\packages\Microsoft.Azure.Kinect.BodyTracking.1.0.1\content\dnn_model_2_0.onnx">
      <Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>

(I found this because sometimes VS would give an error about trying to include dnn_model_2_0.onnx twice.

qm13 commented 2 years ago

Fixed