How to run a Windows 10 IOT app locally?

2019-03-30 08:22发布

问题:

Is there a way to allow a normal Windows 10 installation to run Windows 10 IOT apps for debugging purposes? Right now when I set the architecture from ARM (Raspberry Pi 3) to x64 (Local machine) I get the following error message when I start a debug session:

I've read here that it's got something to do with 'embedded mode' but I can't find any information anywhere about it and the group policy does not appear to contain anything about enabling embedded mode...

Help is greatly appreciated! Thanks in advance!

回答1:

It turns out that in addition to applying the policy, you also have to start the "Embedded Mode" windows service:

After that, everything works flawlessly. Just make sure to change ARM to x64 or x86.



回答2:

In addition to enabling the Embedded mode service, and you find the service cannot be started manually, one will need to run a provisioned package on the OS other than Win IOT Core that will set AllowEmebeddedMode = 1.

  1. Download the Windows 10 ADK
  2. Install it
  3. Build a package
  4. Run the package

The embeddedMode service should run automatically.

More info here.



回答3:

I'm not sure what you mean with a Windows 10 IoT app if you don't mean an UWP app, and that should be able to run on your PC. Have you activated Developer Mode on your PC? If not, got to SystemUpdate & securityFor developers and choose Developer Mode. This will let you run all UWP apps, and not just those from the Windows Store.