Hello,
The VersionPrefix
and VersionSuffix
are for .NET not MSIX, so they cannot be included. And you cannot have Datetime as part of version string in MSIX package.
As the regular expression in the error message suggests, you can't have every field higher than 65535, the MSIX manifest schema doesn't allow numbers of that size you convert from Datetime.
In addition, Maui doesn't affect the allowed version schemas. Those are set by the underlying platform. For Windows, Maui uses the Windows App SDK / WinUI3, which in turn uses MSIX for packaging.
For more details, please see Package version numbering.
For Windows 10 or Windows 11 (UWP) packages, the last (fourth) section of the version number is reserved for Store use and must be left as 0 when you build your package (although the Store may change the value in this section). The other sections must be set to an integer between 0 and 65535 (except for the first section, which cannot be 0).
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.