0
votes

I created appx package using makeappx.exe. Also I did the changes on Jenkins so that on each build I could have appx as output. Now on each build I am getting appx with same version number as this version is set in AppxManifest.xml I want to increment the version of appx package on each build. How to do so?

1

1 Answers

0
votes

The version can be updated in Package.appxmanifest of the project before every time it is built. For example:

<Identity Name="3ec95549-...7a30bb0" Publisher="CN=publisher" Version="1.2.0.0" />

After the project build, you could find the version in AppxManifest.xml. But you could just edit the AppxManifest.xml to update the version before package.

MakeAppx.exe defined the package version depend on the version inside AppxManifest.xml.MakeAppx.exe doesn't have command to re-set the package version for creating an app package. You may not update the version through MakeAppx.exe.

But if you create an app bundle, you can specifies the version number of the bundle by /bv command of MakeAppx.exe. Details please reference "Create an app bundle section" of Create an app package with the MakeAppx.exe tool.