Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why uwp apps take long time to start?

Even an uwp app containing nothing but a button starts up slower than a wpf or winform app. Is there any reason behind it?? Is this because of uwp apps running in container that makes the start up process slow??

like image 224
Soumya Mahunt Avatar asked Jan 30 '26 22:01

Soumya Mahunt


1 Answers

Emmm, it's the disadvantage of uwp, maybe ms team want to show how fast their code works. But we can do something to make it launch very fast in release mode.

First open Package.appxmanifest in text mode. Insert uap5 at the top of the file.

<Package
  ...
  xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
  IgnorableNamespaces="uap mp uap5"
  ...>

Then you need to find label SplashScreen.

<uap:SplashScreen ... uap5:Optional="true"/>

Finally, change to release mode, you will find your app is launching very quickly.

like image 118
Vincent Avatar answered Feb 03 '26 05:02

Vincent