none
Package version number using MSBUILD RRS feed

  • Question

  • Hi,

    I'm trying to build a package using MSBUILD: I'm specifying the version number in a customization file.  I'm trying to use version numbers in this format: xx.x.x.0xxx.

    MSBUILD is giving me this error:

    AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 87, Reason: 'xx.x.x.0xxx' violates pattern constraint of '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}'. The attribute 'Version' with value 'xx.x.x.0xxx' failed to parse.

    How can I fix this error?

    Thank you.



    • Edited by AntonyWR Monday, October 21, 2019 2:14 PM More info
    Monday, October 21, 2019 2:02 PM

Answers

  • Hi AntonyWR,

    Welcome to the MSDN forum.

    As far as l know, this error is mainly due to the irregular specification of your app version number. You have to make sure that every bit of your version number is in integer form, such as your fourth bit 0xxx, which is not an integer specification so it is wrong. Please modify it to an integer specification.

    > >Also, you can refer to this document about the specifications for the version number of the UWP package.

    Any feedback will be expected.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com


    Tuesday, October 22, 2019 2:26 AM