C# debug error: Access denied

Hi,
According to the readme, via Cmake I built the sample C# project successfully, and the .exe file can be run. However, I could not find a way to set a breakpoint and debug the project since it says “Unable to start program xxx, access is denied”.
Does anyone encounter the same problem?

Regards,
yqtl

Hi yqtl,

  1. In Visual Studio, go to Project > nuitrack_csharp_sample Properties…
  2. In the “General” tab set the “Output Directory” to $(SolutionDir)
  3. Save changes and then copy nuitrack.net.dll from the root project directory to the “build” folder.

After that, you’ll be able to debug the project (F5 button).

1 Like