Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Sample Gallery SDK Retargeting

Paul Gildea edited this page May 13, 2016 · 1 revision

How to retarget the SDK for the Sample Gallery and Samples Common projects

The Sample Gallery and Samples Common is authored to conditionally compile samples against the SDK version you specify in the properties of their respective Project files.

Currently they have been tested to run with the following versions:

  • 10586
  • 14295
  • 14332

By default these Projects are targeted to the last major SDK release.

If you want to try out flighted APIs you will need to retarget the Project files to the flighted SDK.

Update the Target version in the .csproj files

  1. Right click on SampleGallery project file in the Solution Explorer in Visual Studio
  2. Click "Properties"
  3. Using the Target version drop down to select which installed SDK to use

Retargeting SDK Version

Repeat for the SamplesCommon project file.

Once you've retargeted both Project files you should be able to Rebuild the Solution and press F5 to start debugging.

Note: You typically want to have matching SDK and Build versions to ensure predictable behavior. A common issue for Insiders will be trying to use an older SDK with a more recent flight Build with could run into build or runtime errors as things may have changed.

Clone this wiki locally