June 30, 2015 4:45 pm

Windows 10 SDK Preview Build 10158 Released

Today, we released a new Windows 10 SDK Preview and the associated Windows 10 Mobile emulators (Build 10158), to be used in conjunction with Windows 10 Insider Preview (Build 10158). Preview SDK Build 10158 contains bug fixes and changes to the API surface area.  You can download it from the Windows 10 Developer Tools page.

To briefly recap – with the preview releases of the Windows 10 SDK, we are matching each OS flight delivered to Windows Insiders in the Fast ring.  When running the latest preview SDK and emulator in your local development environment, your apps will be able to access the latest Windows capabilities and APIs available in the preview build. Each preview SDK release installs side by side of the official Windows 10 tooling for Visual Studio 2015. If you want to try out the newest features and have the latest bug fixes delivered in a Windows Insider Preview release, this is for you – each release is a snapshot of work in progress, so expect functionality or APIs to be impacted and that final functionality may vary.

Start developing and @wpdev would love to see what you create. If you find bugs or issues, please leverage the Windows Feedback tool or MSDN forums.

What’s New in SDK 10158

Some API types received properties and method signatures changes. New APIs were added in this SDK release, among them:

  • Windows.Devices.Perception.*
  • Windows.Devices.Perception.Provider.*
    This flight of Windows introduces two new related sets of APIs in the Windows.Devices.Perception and Windows.Devices.Perception.Providers namespaces.  The Providers APIs allow IHVs and OEMs to expose depth, infrared, and color cameras (and related metadata) for computer vision into UWP, and to designate a camera as participating in Windows Hello face authentication.  The Windows.Devices.Perception namespace contains the client APIs that allow a UWP application to access the color, depth, or infrared data of computer vision cameras.
  • Windows.Media.Capture.AdvancedCapturedPhoto
  • Windows.Media.Capture.AdvancedPhotoCapture
  • Windows.Media.Media.AdvancedPhoto*
    AdvancedCapturedPhoto and AdvancedPhoto* APIs are new photo capture APIs for Windows 10 that enable apps to capture HDR photos on supported devices. For devices that do not ship with hardware HDR capabilities but support VPS (variable photo sequence), the API will use a platform provided algorithm to generate the HDR photo.
  • Windows.Media.Import.PhotoImport*
    The Windows Photo Import API in the Windows.Media.Import namespace is a new, modern, asynchronous WinRT API enabling Windows Store and classic applications to import photos and videos from portable devices such as smart phones and digital cameras, as well as memory cards and other removable USB storage media, with an emphasis on ease of use and performance. One of the key features of the PhotoImport API is that it runs in the background so that even if your app is suspended / killed, the import keeps happening.

Types now converged

Here are just a few types we’ve heard people are interested in which have now converged. We will continue to converge types based on developer feedback.

  • Windows.Media.Capture.CameraCaptureUI
  • Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation

Moving your projects forward

After installing the new Windows 10 SDK, update your projects with the Visual Studio Release Candidate to use the new SDK.

First, update the Project file (.csproj, .jsproj, .vcxproj) by:

  1. Opening the project in Visual Studio
  2. Right clicking on the project in the Visual Studio Solution Explorer, and choose “Properties”
  3. Depending on your project type, the UI will look a little different but click on the dropdown that says “Target Version”. The below screenshot is from a C# Project. Note: If you’re using a Javascript project, open the .jsproj and find a replace the TargetPlatformVersion with 10.0.10158.0.
  4. Select Windows 10 Insider Preview (10.0; Build 10158).  * below is a sample of what you’ll be seeing

Flight1

Now that you have updated the project file, find the application’s Package.appxmanifest and do the following:

  1. Open that file (it should present you with an XML Editor)
  2. Find the Element, Dependencies and its child element, TargetDeviceFamily
  3. Modify the MaxVersion Tested Attribute from “10.0.10069.0” to “10.0.10158.0”.
  4. Save and close the file.

Flight2

Known issues (Added 7/1/2015 7:30pm)

From MSDN forum entry:  When installing the Windows SDK 10 version 10158, an error that AppVerifier did not install correctly and setup rolls back OR When trying to uninstall Windows SDK 10 version 10069, an error that the AppVerifier package failed to uninstall.

  1. Download AppVerifier.zip  file to your PC.
  2. Extract the contents to a known location.  Example: C:\temp
  3. From an Administrative command prompt, run c:\temp\InstallAppVerifierBinary.cmd
  4. Once complete you should be able to install or uninstall the AppVerifier binaries.

If you have other issues, please post to the forums and include the following [UWP][SDK] in the title if it is a Windows 10 SDK install or uninstall issue.

Now you’re ready to use the new SDK. Start developing and @wpdev would love to see what you create. If you find bugs or issues, please leverage the Windows Feedback tool or MSDN forums.

Updated July 1, 2015 7:35 pm

Join the conversation

    • I was wondering about this too. I’m assuming that the 10158 SDK will work with build 10159? I’m installing it now, so I guess we’ll see….

  1. I have both the Insider PC 10130 build and also a Windows insider 10 phone. I tried to use the Windows phone app on the PC and it no longer works., as it
    does on Windows 8.1. I’m running Windows 8.1 on the laptop and the Windows 10 preview on a desktop PC.

    • Me too. Same problem. It get me to Phone Companion app, but Phone Companion app don’t manage my files like the old app…

  2. Does the Hello API work with Kinect (for Windows), either v1 or v2, as it seems hardware should expose color, depth, or infrared data which v2 definitely does I think. It’d be a crying shame One Micorosoft would of forgot it’s own infrared capable camera. If not now, how about in future, after maybe a driver update?

  3. I hope this also counts for .vbproj?

    You know, there are still A LOT of Visual Basic developers, and VB is a perfect language to position against Swift, and to get tons of cool apps!

    On top: So many niche Applications for WinForms are still out there written in VB, and they are only waiting to become migrated.
    So, please treat VB as a first class citizen in the Windows Eco System!

    Thanks,

    Klaus
    (.NET/VB MVP 🙂 )

  4. Guys, I cannot find HardwareToken Windows.System.Profie for this newest newest Windows 10 SDK 10.0.158.0. Nowhere to be found in the Windows.Foundation.UniversalApiContract.winmd file, too (ILSpy).

    • Hi Kamen,
      Windows.System.Profile.HardwareToken API is functional on desktop and mobile only and hence this API has been moved out of Windows 10 SDK and is included in Desktop and Mobile Extension SDKs.
      You can find it in Windows.System.Profile.ProfileHardwareTokenContract.winmd .

      Cheers,
      Vivek

      • Saw that there but rightly doubted that it should be directly referenced 🙂 So, it’s the Desktop/Mobile Extensions.

        Thanks a million!

        And thanks for the Eas Information addition 🙂

  5. Currently on the PC 64 Bit 10130 build and unable to update to build 10159.

    Have tried stopping and restarting all processes for windows updates and also restarting the system after trying to stop/start windows updates processes. I am set to be on the fast track however have not received any updates since June 26.

  6. Waiting for the latest Windows 10 builds for Mobile..Two builds release for PC in this week..Mobile lovers need to new builds quickly..Hurry up guys..Keep it up.. 🙂

  7. I was using windows 10 insider preview build 10130 and found a problem in sound. I am using sony vaio laptop with windows 7 home premium. Everything was good including sound system in win 7. But when I installed windows 10 insider preview, my laptop sound became cracked and unclear. Now I have rolled back to my original windows 7 and my sound system is ok. I don’t know about other vaio user but Microsoft should consider the matter seriously.

  8. I AM THE ORIGINATOR OF THE “UNIVERSAL” APP.
    Im not here to harass I just want some quality service and public
    exposure of the music Ive produced from Nokia Lumia….