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.47k stars 614 forks source link

Nuget not work in WinUI3 C++ project #1277

Open knat opened 4 years ago

knat commented 4 years ago

After adding Microsoft.Azure.Kinect.BodyTracking nuget package to a WinUI 3 desktop C++ project,

#include <k4a/k4a.h>
#include <k4abt.h>

not work.

Define

 <Force-Enable-Microsoft-Azure-Kinect-Sensor>true</Force-Enable-Microsoft-Azure-Kinect-Sensor>
 <Force-Enable-Microsoft-Azure-Kinect-BodyTracking>true</Force-Enable-Microsoft-Azure-Kinect-BodyTracking>

in the vcxproj fix the problem, I don't know why.

PS: There's a user voice to add UWP support, Maybe WinUI 3 desktop app is an acceptable alternative.

qm13 commented 4 years ago

@knat thanks for providing the info and the suggestion to promote WinUI 3 as an alternative to UWP support. We are investigating the reason the two defines addressed the problem.

qm13 commented 4 years ago

@knat what version of VS are you using?

knat commented 4 years ago

@qm13 VS 2019 Version 16.7.0 Preview 3.1