Can't deploy to HoloLens emulator using il2cpp backend

I’ve seen someone mention using il2cpp for HoloLens, so I’m pretty sure it’s possible.

However, I’ve taken the simplest HoloLens tutorial, “Hello Holograms,” and used the il2cpp backend with it. The code builds fine, but when I try “Debug > Start without debugging” I get:

Error DEP0700 : Registration of the app failed. Deployment Register operation with target volume C: on Package 100-HelloHolograms_1.0.1.0_x86__pzq3xp76mxafg from: (AppxManifest.xml) failed with error 0x80073CFD. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cfd) 100-HelloHolograms

The error as described on that page is ERROR_INSTALL_OPEN_PACKAGE_FAILED, and the linked doc says:

The package couldn’t be opened.

Possible causes:

  • The package is unsigned.
  • The publisher name doesn’t match the signing certificate subject.
  • The file:// prefix is missing or the package couldn’t be found at the specified location.

Check the AppxPackagingOM event log for more info.

That event log gives no interesting information. The only event log messages relating to the error are in theAppxDeployment-Server log, and they’re the same message as above indicating that registration failed.

As far as I can tell the signing is working fine; the WsaTestCertificate.pfx is there and I even tried explicitly trusting it. I’m in Developer mode on Windows 10 pro version 1607, build 14393.693, and am using Visual Studio Community 2015 Version 14.0.25431.01 Update 3. I am building for x86 only in the Release configuration. In the Package.appxmanifest I’ve changed “Windows.Universal” to “Windows.Holographic” for the TargetDeviceFamily, with MaxVersionTested=“10.0.14393.0” (the version I have installed).

If I try Project > Store > Create App Packages… I see the package created successfully. However, I can’t deploy it.

Any ideas?

I don’t think you need to change Package.appxmanifest for deploying to hololens emulator. That shouldn’t hurt either though.

Does deploying to local machine work? Is developer mode enabled on the emulator? Does deploying .NET scripting backend applications work?

Thanks – your comment helped me figure it out: The little pulldown for selecting the target device for debugging was set to “Local Machine” rather than “HoloLens Emulator 10.0.14393.0”