question

ansalc-1556 avatar image
1 Vote"
ansalc-1556 asked ·

UWP Shortcut running an older version

When I debug (press F5) a release UWP app on Visual Studio 2019 it runs fine.

However, when I click on the same app in the Start menu or I click the app shortcut on the desktop or call its keyboard shortcut, the app that runs is an old version.

How can I make sure that the Start menu or shortcut points to the latest version of the program?

Where are these older versions stored. I have clicked on Clean solution and Clean project and rebuilt afterwards.

Thanks.

windows-uwp
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you clarify better? Given the following sequences of the operations:

  1. build, debug, close app, start app from start menu

  2. build, start app from start menu

your case is 1, 2 or something else?



0 Votes 0 ·
ansalc-1556 avatar image
0 Votes"
ansalc-1556 answered ·

I've found out that the reason for this behaviour was that the app that was run was the one located in the Release\AppX folder

And the executable file in that folder was not updated

I have unistalled the App and run it again and now the exe file in the AppX folder is updated and all works as expected

I still do not know why this happened.

I also do not yet know well the purpose of the AppX folder

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Glad to hear that you've found the reason for this issue. Would you like to accept your replay as an answer? This could help those people that have the same issue.

Thank you.

0 Votes 0 ·
ansalc-1556 avatar image
0 Votes"
ansalc-1556 answered ·

I just need to know what to do to make the app on the start menu or the corresponding shortcut run my app.

At the moment the shortcut runs an older version of the app

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.