Fetch current build parameters

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

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 1 year and 3 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.
Locked
moosasarshar
Posts: 6
Last visit: Thu Mar 09, 2023 1:00 am
Has voted: 1 time

Fetch current build parameters

Post by moosasarshar »

In build settings, packager, version information, it is possible to specify parameters, like file version and product version. How to fetch these from within the running build itself, so that the application can be self-aware of its own file and product version?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Fetch current build parameters

Post by jvierra »

This will get the version information.

[System.Reflection.Assembly]::GetExecutingAssembly().GetName().Version
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Fetch current build parameters

Post by Alexander Riedel »

Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 1 year and 3 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.
Locked