Page 1 of 1

Auto-Increment file version does not work correctly

Posted: Tue Apr 07, 2020 7:58 am
by Nillth
Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.174
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19592.0

When building a exe the Auto-Increment file version does not work correctly.

as per the attached screenshot, the resulting exe will be version 1.0.5.0 however the value is not updated in the .psbuild file, so all subsequent builds are also 1.0.5.0
Expected result would be that subsequent builds Auto-increment without having to manually update the version numbers
SAPIEN_Script_Packager_ftQXOAc2df.png
SAPIEN_Script_Packager_ftQXOAc2df.png (46.96 KiB) Viewed 1514 times

Re: Auto-Increment file version does not work correctly

Posted: Tue Apr 07, 2020 10:34 am
by Olga_B
The version number will not increase if Script Packager tool is always open.
You need to restart Script Packager, or build packager from PowerShell Studio, then version will be increasing.
When checkbox is checked, the .psbuild will update value
AutoIncrementVersion=1
Every time you restarted Script Packager the value for these two will be updated
FileVersion=
ProductVersion=

Re: Auto-Increment file version does not work correctly

Posted: Wed Apr 08, 2020 11:53 pm
by Nillth
I appreciate that, however I usually build from the Deploy Menu.
PowerShell_Studio_rRdUhRBK2T.png
PowerShell_Studio_rRdUhRBK2T.png (3.79 KiB) Viewed 1243 times
and it is not Auto-Incrementing the values stored in the psbuild file.

I have tried removing the .psbuild file and starting fresh, still with no luck
the build increments from the stored version e.g. if the psbuild file contains
FileVersion=1.2.1.0
ProductVersion=1.2.1.0

the output will be version 1.2.2.0
however subsequent builds do not increment as the psbuild file does not get updated.

I have even test with a fresh project.
QqRFk6gUFe.gif
QqRFk6gUFe.gif (1.29 MiB) Viewed 1243 times

Re: Auto-Increment file version does not work correctly

Posted: Wed Apr 08, 2020 11:57 pm
by Nillth
Note: there is a bit of the a delay in the Gif, however I build the exe twice, and show the properties on the exe after each build.
The build process increments from the stored value in the PSbuild file 1.0.1.0 to 1.0.2.0
however the build process does not update the psbuild file. so subsequent builds are also 1.0.2.0

Re: Auto-Increment file version does not work correctly

Posted: Wed Apr 15, 2020 1:46 pm
by brittneyr
I've been able to reproduce this issue and have informed the development team. It should be fixed in the next build of PowerShell Studio.

Re: Auto-Increment file version does not work correctly

Posted: Tue Apr 28, 2020 3:53 pm
by Nillth
brittneyr wrote:
Wed Apr 15, 2020 1:46 pm
It should be fixed in the next build of PowerShell Studio.
Thanks Brittney!

Re: Auto-Increment file version does not work correctly

Posted: Fri May 01, 2020 2:36 pm
by brittneyr
Please try build 5.7.175 and let me know if this issue is resolved.