0. Installation and Configuration

2021-08-20
2 min read

Visual Studio 2019 Configuration for Kinect V2 code development

In this tutorial, you will find the instructions for configuring your Visual Studio 2019 to write code for the Kinect V2

Prerequisites:

  • At least 15 GB of free space on disk
  • Internet connection to download the installer

Installation Steps:

  1. Download the Visual Studio Community 2019 installer from the Microsoft website Link
  1. Execute the installer
  1. Select the .NET development environment as well the C++ development environment as showed in the picture in your Visual Studio Installer. It will take more or less 10GB or disk.
  1. Restart your computer
  2. All done!

Creating a WPF (Windows Presentation Foundation) project

  1. Open your Visual Studio 2019
  2. Select the option Create new poject
  1. Search for WPF
  2. Select the option WPF (.NET Framework)
  1. Give a name to your project
  2. Ideally, create the project in the folder with your Github projects (because you are a good developer who will commit the changes to your own repository ;) )
  3. Select the option Place solution and project in the same folder
  1. Click on Create
  2. Now you have ready your template to work

Configuring the WPF project for Kinect V2 code

For running the application using the Microsoft Kinect library, you will need to run the Build in a x64 architecture and in some cases, your code needs to be run in unsafe mode.

Configuring for x64 build

  1. Open the Configuration Manager. Go to Build in the context menu, and select Configuration Manager

  1. In Active solution plataform open the scroll menu and select <New…>
  1. It should pop up the x64 text automatically, if not, just select it or write it down.
  1. Click on OK
  2. Click on Close

Configuring unsafe code

  1. Open the Solution Explorer. Go to View in the context menu, and select Solution Explorer
  1. Right click on your project name, and select Properties

  1. On the left menu, select Build
  1. From the options, check Allow unsafe code
  1. Save with Ctrl+S or click on the Save icon.

Questions?

If you have any questions, comments, or suggestions, feel free to contact me on Twitter or Linkedin as @violetasdev.

References

Avatar
Violeta Sosa León Microservices Integration, DevOps, Software Development, Geospatial Technologies, Spatial Data Science, Software Development Teams Management