To complete the setup of your development environment, configure your development computer by specifying the address of the console to use, and then deploy and run some of the XDK samples on the console, as follows.
Sections:
The master list of samples is on the Xbox Game Developer (XGD) site. You’ll need to be logged into XGD to view this page.
Samples are available in the following technology areas:
Documentation about each sample is not directly shown at the Xbox Game Developer (XGD) site; instead, when you download a sample from XGD, the sample’s directory includes a Readme .docx file.
Many of the Xbox One samples are hosted on GitHub under the MIT license. These can be obtained by cloning the Xbox-ATG-Samples repository or by downloading the entire repository as a zip from the releases area. Building these samples require an Xbox One XDK, so they still require an Xbox One Developer Agreement, but the sample source itself is freely available.
A subset of samples contain sensitive material that precludes publishing to a publicly accessible GitHub. These remain hosted on the Xbox Game Developer (XGD) site as zip files.
You only need to specify a console for a particular sample if you have not specified a default console, or if you want to use a different console than the default.
.sln file in Visual Studio. For example: [path for your XDK Samples]graphics\SimpleTriangle\SimpleTriangle.slnThe sample projects are set to use the newest XDK edition installed on the system. You can specify a particular version by editing the Xbox One property page in the project settings. Set the Xdk Edition Target value to the desired value based on your installed side-by-side Xbox One XDKs.
The DirectX Tool Kit library used by most samples makes use of prebuilt shaders for Xbox One included in the static library. These shaders are edition-specific and are built automatically the first time you build a sample. If you change the XDK edition, you may have to forcibly rebuild these:
cd [path for your XDK Samples]Kits\DirectXTK\Src\Shaders
CompileShaders.cmd xbox
cd [path for your XDK Samples]Kits\DirectXTK12\Src\Shaders
CompileShaders.cmd xbox
Samples that use Xbox LIVE services need to run against a particular Sandbox ID.
xbconfig sandboxId=XDKS.1
To reset the console to the default of no sandbox enter:
xbconfig sandboxId=
For more information, refer to the Configuration (xbconfig.exe) documentation.
.sln file that is named like the sample, and open it in Visual Studio. For example: [path for your XDK Samples]graphics\SimpleTriangle\SimpleTriangle.sln
Push deploying 'SimpleTriangle\Durango\Layout\Image\Loose' to '<Tools IP address>'.
Calculating payload.
Transfer starting for 13 files (119515436 bytes).
Transferring 1/13: SimpleTriangle\Durango\Layout\Image\Loose\appdata.bin (16384 bytes)
Transferring 2/13: SimpleTriangle\Durango\Layout\Image\Loose\AppxManifest.xml (1986 bytes)
Transferring 3/13: SimpleTriangle\Durango\Layout\Image\Loose\era.xvd (108388352 bytes)
Transferring 4/13: SimpleTriangle\Durango\Layout\Image\Loose\lnk{2A71F60E-A45D-4BA7-8B8A-45C85D1275E3}.tmp (8794112 bytes)
Transferring 5/13: SimpleTriangle\Durango\Layout\Image\Loose\PixelShader.cso (21112 bytes)
Transferring 6/13: SimpleTriangle\Durango\Layout\Image\Loose\resources.pri (2312 bytes)
Transferring 7/13: SimpleTriangle\Durango\Layout\Image\Loose\SimpleTriangle.exe (657920 bytes)
Transferring 8/13: SimpleTriangle\Durango\Layout\Image\Loose\VertexShader.cso (32480 bytes)
Transferring 9/13: SimpleTriangle\Durango\Layout\Image\Loose\Assets\Logo.png (54793 bytes)
Transferring 10/13: SimpleTriangle\Durango\Layout\Image\Loose\Assets\SmallLogo.png (30559 bytes)
Transferring 11/13: SimpleTriangle\Durango\Layout\Image\Loose\Assets\SplashScreen.png (1383444 bytes)
Transferring 12/13: SimpleTriangle\Durango\Layout\Image\Loose\Assets\StoreLogo.png (19335 bytes)
Transferring 13/13: SimpleTriangle\Durango\Layout\Image\Loose\Assets\WideLogo.png (112647 bytes)
Package Full Name: 'd41ef946-f0c8-4779-8bfa-61ca1567cfb5_1.0.0.0_x64__8wekyb3d8bbwe'
119515436 bytes in 13 files over 11.259162 seconds.
Approximate transfer speed: 10.6149494962414 MB/s.
Aumids returned for this package:
d41ef946-f0c8-4779-8bfa-61ca1567cfb5_8wekyb3d8bbwe!App
Project associated with aumid 'd41ef946-f0c8-4779-8bfa-61ca1567cfb5_8wekyb3d8bbwe!App'
Selected debugger address '<Tools IP address>.
Launch request successful.
To search the downloaded samples to find sample code that uses a particular API item, you can use Visual Studio or the command prompt.
findstr. For example, the following command searches for CopyResourceX. cd [your samples directory]
findstr /s CopyResourceX *.cpp