Tuesday, May 8, 2012

Windows App Certification Kit Test can't find the app

I've been trying to run the Windows App Certification Kit Test for a while now and again after building a package. It failed every time with an error stating that it couldn't find the app. I found this rather strange, because whenever I open the start menu, it's right there!

It turns out, before you run the kit, you have to install the package. When Visual Studio deploys the app, it is deployed as an unpackaged app. The certification kit looks for a packaged app, with a particular application name (a product guid). I won't go into the details about the other differences.

First, you have to uninstall the unpackaged app that Visual Studio deploys. Right click on the app in the start menu, and click Uninstall in the app bar.
To install the app, click on the link to the build package location in the window that is displayed after package creation. Next, open the folder with the name of your package, right click the Add-AppxDevPackage.bat file, and click Run as administrator. This will install your app as a packaged app.

You can now click the button to run the certification kit.

No comments:

Post a Comment