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 = require('appx-manifest-version');
appxVersion.incrementVersion(currentManifestString)
.then(data => {
console.log(data.version);
console.log(data.manifest);
})
.catch(err => {
console.error(err.status);
console.error(err.details);
});
appxVersion.incrementVersionFile(manifestPath,overwriteCurrent)
.then(data => {
console.log(data.version);
console.log(data.manifest);
})
.catch(err => {
console.error(err.status);
console.error(err.details);
});
License
See the LICENSE file.