3

One possible reason why your program crashes when submitted to the Microsoft Sto...

 1 year ago
source link: https://devblogs.microsoft.com/oldnewthing/20221012-00/?p=107281
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

One possible reason why your program crashes when submitted to the Microsoft Store, but it runs fine on your machine

RaymondChen_5in-150x150.jpg

Raymond Chen

October 12th, 20220 0

A customer reported quite some time ago that when they submit their program to the Store, it always fails with a crash. But it runs fine on their machine! What could be the reason?

The customer shared the program, and one thing I noticed is that the program’s manifest declared the minimum supported version as 10.0.0.0, even though the program uses the SDK from build 16299. If you say that your program runs all the way down to Windows 10 version 10.0.0.0, then the Store validation will try to run it on the lowest version of Windows 10 it can find, which would be the RTM version, 10.0.10240.0.

And the program indeed crashes on build 10240, because the program uses some Windows features that were introduced in build 16299, and it failed to perform the required version check before trying to call into those features.

(In this particular case, the program used a Navigation­View control on its main page, which explains why it crashed at launch.)

So check your minimum system requirements when you submit your program to the Store. If you say that you support a version of Windows 10 from 2015, then the Store is going to hold you to it.

Related: The case of the UWP application that crashes at launch on Windows 10X.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK