appx-manifest-version
Tool used to increment the version number of an AppxManifest.xml
file.
Installation
The package is published to npmjs.com. You can install with:
npm install -g appx-manifest-version
or
npm install appx-manifest-version --save-dev
Command Line
appx-version manifest_file_path
This will load the Appx manifest XML file manifest_file_path
, locate
the Package/Identity@Version
field and increment the final numerical
field after a period (.
). Then it will overwrite the original manifest
file with the updated content.
Code
You can call into the appx-manifest-version
module from your own code
as follows:
const appxVersion = ; // currentManifestString is a string containing the manifest contents// returns a PromiseappxVersion ; // manifestPath is the path to the manifest XML file// overwriteCurrent is true if the current XML file should be updated// returns a PromiseappxVersion ;
License
See the LICENSE file.