Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid product version 'a.b.cd.xy'. Must be of format '##.##.####'. How to change the default version format to have 3 decimal periods

Tags:

.net

I have a set up project with current version in the format "a.bc.xy". I want to change the version number to "a.b.cd.xy" having 3 decimal periods in the version number. When I changed the version number and hence also the product Code, and then built the set up project I am getting the following error:

Invalid product version 'a.b.cd.xy'.
Must be of format '##.##.####'.

Can anyone kindly let me know, how to change the version no format to have 3 decimal periods in the version number?

like image 878
codeLover Avatar asked Oct 20 '25 23:10

codeLover


2 Answers

MSI supports a three-part version number format only. For some details about version numbering within MSI and Windows see this blog post.

like image 173
Ondrej Tucny Avatar answered Oct 22 '25 13:10

Ondrej Tucny


None of these answers fixed it for me. I found a different solution: in your solution, click the project (vdproj). Look in the "Properties" panel (not the same as right-click. Instead, press F4). The last setting is called "Version". It gets copied-in from your other project(s), and needs to be formatted #.#.# instead of the automatic #.#.#.#.
enter image description here

like image 27
tgolisch Avatar answered Oct 22 '25 13:10

tgolisch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!