Project Templates in Visual Studio for Xbox One Development

This section describes the Xbox One project templates available in Visual Studio.

Project Templates

The Xbox One XDK installs the following Visual Studio C++ project templates:

Direct3D 11 Game
  A project for a Xbox One game that uses Direct3D 11 and C++/CX.

Direct3D 11 Game (C++/WinRT)
  A project for a Xbox One game that uses Direct3D 11 and C++/WinRT.

Direct3D 12 Game
  A project for a Xbox One game that uses Direct3D 12 and C++/CX.

Direct3D 12 Game (C++/WinRT)
  A project for a Xbox One game that uses Direct3D 12 and C++/CX.

Direct3D 11 Game Makefile
  A Xbox One project using Direct3D 11 and C++/CX for using an external build system.

Direct3D 11 Game Makefile (C++/WinRT)
  A Xbox One project using Direct3D 11 and C++/WinRT for using an external build system.

Direct3D 12 Game Makefile
  A Xbox One project using Direct3D 12 and C++/CX for using an external build system.

Direct3D 12 Game Makefile (C++/WinRT)
  A Xbox One project using Direct3D 12 and C++/WinRT for using an external build system.

Windows Runtime Component
  A project that creates a native class library component for a Xbox One game.

Static Library
  Native Static Library for Xbox One.

DLL
  Native Dynamic-Link Library for Xbox One.

Note The C++/WinRT versions of the Direct3D 11 Game and Direct3D 12 Game templates require Update 3 of Visual Studio 2015. The originally released verison of Visual Studio 2015 produces compiler errors when building these templates.

To select a project template in Visual Studio 2015 or 2017, from the File menu select New > Project, then in the New Project dialog box expand Visual C++, Xbox One and click XDK. The following range of XDK templates will then appear.

Visual Studio Properties

The Xbox One project templates add the directory paths shown in the following table to the Visual Studio properties.

Directory content Path
Executable directories $(Console_SdkRoot)\bin
Include directories $(Console_SdkIncludeRoot)\um;$(Console_SdkIncludeRoot)\shared;$(Console_SdkIncludeRoot)\winrt
Reference directories $(Console_SdkLibPath);$(Console_SdkWindowsMetadataPath)
Library directories $(Console_SdkLibPath)
Library directories for WinRT $(Console_SdkLibPath);$(Console_SdkWindowsMetadataPath)