Change Package version number of Windows Universal App for Windows Phone 8.1 app version while publishing
Asked Answered
E

1

11

After migrating my app from Windows Phone 8.0 to Windows Universal App 8.1, I had problems with Package version number.

What I put in appxmanifest is 1.1.58.0. appxmanifest

Creating App Package, I keep 1.1.58.0. Create App Package

When I upload to the dashboard it shows a datetime based version: 2014.1124.1949.1685 dashboard

On the store it also shows datetime based version as well: store

And finally in the app "About", it's showing the right version using Package to get the version.

string.Format("{0}.{1}.{2}",
Package.Current.Id.Version.Major,
Package.Current.Id.Version.Minor,
Package.Current.Id.Version.Build);

enter image description here

My question is: How do I change the Package Version that shows on the Store? I had no problems before Universal App.

Epiphyte answered 25/11, 2014 at 13:49 Comment(0)
E
7

During the "Create App Packages" wizard, set the option for 'Generate app bundle' to Never. It will now pick up the version defined under the Packaging tab of the Package.appxmanifest file.

Hope this helps.

Eckstein answered 3/12, 2014 at 21:53 Comment(7)
Your answer does not work for me, after I change "Generate app bundle" (pic 1 on question) to never, it changes back to always after the package is created, and it does not let me change it during the creation (pic 2 on question).Epiphyte
What if you selected "No" for "Do you want to build packages to upload to the Windows Phone Store?" ? That's the screen between pic 1 and pic 2 in the question. You can still manually upload .appx file to the store (instead of the bundle). It should then pick up the version correctly from the manifest file.Eckstein
When I choose No, I can't upload to store, it says: "The packages can be unsed only on Windows Phone Emulators or an unlocked phone.". Thanks for trying to help me anyway.Epiphyte
i don't like this answer, because it doesn't say WHY. Why would I want to generate an app bundle? Why would I not want to?Cud
msdn.microsoft.com/en-us/library/hh975357.aspx#Appx Not sure why we can't select a verison number for app bundles.Cud
This worked for me. But you can't update the package from Bundle version to APPX version (if you had been created the app with bundle). So you have to create another app based on APPX versioning if you don't want the default Bundle versioning.Censorious
this has worked for me, just make sur that you select Never in both the appxmanifest & when you create the app Package: i.imgur.com/FT9Ec0w.pngMarried

© 2022 - 2024 — McMap. All rights reserved.