BUG:: Deploy Setting Auto-increment file version not working

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

BUG:: Deploy Setting Auto-increment file version not working

Post by sapowernetworks »

Product, version and build: Powershell Studio 5.8.188
Operating system: Windows 10 20H2 Latest Updates
PowerShell version(s): 5.1.19041.906

I think this is a bug:

When I set the Auto-increment file version and build the file version does not increment.
This has worked in previous version of Powershell Studio as I like to increase the version of the file but have not been able to in the version so I am manually increasing the version.

Regards
Rodney
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by brittneyr »

Thank you for reporting. We are aware of this issue and it has been fixed for the next service release.
Brittney
SAPIEN Technologies, Inc.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by sapowernetworks »

brittneyr wrote: Wed May 26, 2021 7:04 am Thank you for reporting. We are aware of this issue and it has been fixed for the next service release.
I have just updated to version 5.8.190.

and still the auto-increment does not work.

Regards
Rodney
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by brittneyr »

I have not been able to reproduce this behavior in build 5.8.190 when packaging.
The output was also updated to include when version numbers are automatically incremented:
SPS_ToolsOutput-BuildExe-AutoIncrement.png
SPS_ToolsOutput-BuildExe-AutoIncrement.png (38.66 KiB) Viewed 13199 times
Can you please provide a screenshot of what you are seeing in the Tools Output when building?
Brittney
SAPIEN Technologies, Inc.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by sapowernetworks »

Before the build
PP2.png
PP2.png (1.65 KiB) Viewed 13157 times
The build
PP1.png
PP1.png (12.52 KiB) Viewed 13157 times
After the build
PP3.png
PP3.png (2.15 KiB) Viewed 13157 times
The version information does not increase, if I open the project built the exe and close the project it does not ask to save and the version information does not update, the next time I build I get the same version 1.4.1.0.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by sapowernetworks »

So in the mean time I have created a script that I run in the post-build command that updates the file and product version numbers of the package section of the projects .psproj.psbuild file.

Hope you can fix this in the next release.

Regards
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by brittneyr »

Are you building from PowerShell Studio or SAPIEN Script Packager?

If you are building from PowerShell Studio with SAPIEN Script Packager open, SAPIEN Script Packager will not update the version information in application.
Can verify that the executable itself in the bin folder is not auto incrementing?
Can you please submit your project or a sample project demonstrating this behavior:
https://www.sapien.com/support/upload
Brittney
SAPIEN Technologies, Inc.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by sapowernetworks »

Hi Brittney,

I am using Powershell Studio,

I open PSS, File - New - Project - Form Project - Give the project a name - Create.
I then pick for this an Empty Form.
Add some buttons to the form.
click deploy - settings
click Version information - Auto-increment file version is ticked.
Save and exit the Script Packager.
now I build the exe from PSS.

Yes the file versions do increase from 1.0.1.0 to 1.0.2.0 and the file.exe version is 1.0.2.0.
but if I build it again it is the same and will not change.
go back into deploy - settings and the versions are still 1.0.1.0

so I have a script that I now run:
click on Deploy - Settings
Build Commands - Post-build commands
This script opens the <projectname>.psproj.psbuild file and writes it back out with the fileversion and productversion values increased.
This is working for me and when I do a major version increase I manually change the versions.

Hope this is enough information if not let me know.

Regards
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by brittneyr »

I still have not been able to replicate this behavior in build 190 or 191.
Do you only experience this behavior when packaging projects? Does this also happen when packaging single scripts?

Can you please submit your project or a sample project demonstrating this behavior:
https://www.sapien.com/support/upload
Brittney
SAPIEN Technologies, Inc.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

Re: BUG:: Deploy Setting Auto-increment file version not working

Post by sapowernetworks »

I have uploaded some files.

I have the same problem with a project or single form.

Regards
Rodney
This topic is 2 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.