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?
How to auto-increment the version in AppxManifest.xml when appx is created using MakeAppx tool?
1k Views Asked by Ankush Butole At
2
There are 2 best solutions below
0
mike
On
If you use a Debug version, try this step:
- map file
MakeAppx.exe need a map file to finish the work, most of the information are included in this file: obj\x64\Debug\package.map.txt
Open it, it the 2nd line, it refer to a file: bin\x64\Debug\Core\AppxManifest.xml
- AppxManifest.xml
Open this file, you can find this information in line 10:
Modify the version number, then pack your project like this:
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\MakeAppx.exe" pack /l /h sha256 /f ".\obj\x64\Debug\package.map.txt" /o /p .\AppPackages\test.msix
The the test.msix file version number changed!
- Automatic change version number
Save the version number in some where(like a file), and before you call MakeAppx.exe, increase the number and update it in the AppxManifest.xml
Related Questions in UWP
- How to make that each seller has its own different set of products using sqlite and uwp
- How can i solve SQLITE_IOERR_SEEK on Unreal UWP application on MS Hololens2
- UWP Blank app throws error code: The app didn't start.. Activation phase: COM ActivateExtension
- How can I tell if a control is actually Visible in UWP?
- DEP0700: Registration of the app failed UWP in release mode
- Linker errors when adding a native c++ static library to Windows runtime component (UWP)
- uwp app only accepts input whenever i have opened on conhost/powershell/cmd
- uwp - WebAuthenticationBroker does not show cloudflare captcha
- How do I get the typename of an arbitrary XAML FrameworkElement?
- Apryse PDFTron SetDoc method throws AccessViolationException
- How do you know which items are realized (non-virtualized) in an ItemsRepeater?
- How to copy or drag n drop image from Webview2 to Canvas?
- UWP app Shutdown PC don't work in kiosk mode
- Path denied error when building UWP app in release
- Display Data from Drive D: in the Gridview
Related Questions in APPX
- How to sideload an 'uwp app/appx package' to a target machine in deployment group, using Azure DevOps
- How does Windows launch packaged Apps
- Exclude folders from generated MSIX package
- Powershell bloatware removal script for all users
- Is there a way I can fix this error without re-adding the device to the domain
- Powershell Add -AppxProvisionedPackage -> Parameter: DependencyPackagePath with 2 strings fails
- Find all installed AppX apps from .NET Framework, display icons, launch them
- Parsing error in distributing a Windows 10 app from an IIS server
- PowerShell code to tie a firewall rule to a WindowsApps executable on Windows 10
- App installed via MSIX package fails to execute
- How to replace a .winmd in a customer's .appx, .msix, .msixbundle package?
- Remove Appx if version less than
- Modify Appxmanifest - Add Element to XML via Powershell
- DLL functionality stops working in UWP app after being packaged into an appx package
- Updating a software from the MS Store using the msixBundle file with a powershell command
Related Questions in APPXMANIFEST
- Missing file from installed app with Windows Packaging Project
- Generating a msix package for a .NET MAUI Blazor application and signing it separately
- Determine ordering of windows shell context menu extension entries
- Start Winui 3 App from command line with arguments
- MSIX appxmanifest missing shortcut, creates shortcut pointing to wrong folder
- What is TargetDeviceFamily MinVersion/MaxVersionTested for Windows 11?
- UWP Packaged WPF .NET 6 app starts a blank window when launched through uri activation and execution alias
- Unity build misses "Publish" option in Visual Studio 2022, forcing publish by including Package.appxmanifest generates "Error: APPX1502"
- Can I change the application name in appxmanifest for a UWP app for different languages?
- How to solve app manifest error in WinUI 3 - "The file name doesn't exist in the package"
- How to write a Package.appxmanifest for installing a windows service in Windows Server 2019
- Create different MSIX installers using a flag parameter on a .NET MAUI app
- Remove Appx if version less than
- Modify Appxmanifest - Add Element to XML via Powershell
- msbuild fails on Certificate could not be opened, network password not correct
Related Questions in MAKEAPPX
- Blocked executables FAIL occurs when using "Windows App Certification Kit" for MSIX files made with Python
- How to replace a .winmd in a customer's .appx, .msix, .msixbundle package?
- Using Makeappx to encrypt/copy-protect specific files UWP
- OpenGL Reporting an old version when project packaged as a Windows `.appx` or `.msix` file
- UWP package creation Error info: Packaname different
- "Create App Packages" from Command Line instead of Visual Studio
- AppExecutionAlias does not run under the Store Context
- Create APPX package and DMG package on windows
- Change Package Identity Name,Publisher & ReSign appxbundle
- How can I make sms web service on python to send sms to every where?
- How to use makeappx to create msixbundle files that can be uploaded to the store according to the appxmanifest file?
- Can I build a UWP sideload app that is dependency-complete on installation without using Add-AppDevPackage.ps1?
- Can I test JavaScript WinRT code without installing Visual Studio?
- why MakeAppx generate 0 kb file?
- APPX creation for Microsoft Store fails to find assets
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The version can be updated in
Package.appxmanifestof the project before every time it is built. For example:After the project build, you could find the version in
AppxManifest.xml. But you could just edit theAppxManifest.xmlto update the version before package.MakeAppx.exedefined the package version depend on the version insideAppxManifest.xml.MakeAppx.exedoesn't have command to re-set the package version for creating an app package. You may not update the version throughMakeAppx.exe.But if you create an app bundle, you can specifies the version number of the bundle by
/bvcommand ofMakeAppx.exe. Details please reference "Create an app bundle section" of Create an app package with the MakeAppx.exe tool.