Product, version and build:PowerShell Studio 2023 5.8.223
Operating system: Windows 11
PowerShell version(s): 7.3.2
Just made the jump from PowerShell Studio 2019 to 2023 as I needed PWSH 7.X support. However, I'm finding that I have to compile an exe to a targeted version of the PWSH 7 runtime and it will not run on any other version. For example, if I target 7.3.2 and the machine version of PWSH is upgraded to 7.3.4, it no longer runs on that machine. Is there no way to make this generic to 7.X? If this is covered in another topic/post, apologies and please point me to it.
Compile to Generic PWSH 7?
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.
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.
Compile to Generic PWSH 7?
This is expected behavior. When deploying packaged scripts with PowerShell 7 engines to other machines, the specific version of PowerShell and .NET are needed on that machine for your packaged executable to run. We do provide runtimes that will allow applications to run on machines without that specific PowerShell 7 version installed:
https://www.sapien.com/blog/2020/08/12/ ... -net-core/
You may find the following article helpful:Go to full posthttps://www.sapien.com/blog/2020/08/12/ ... -net-core/
Re: Compile to Generic PWSH 7?
This is expected behavior. When deploying packaged scripts with PowerShell 7 engines to other machines, the specific version of PowerShell and .NET are needed on that machine for your packaged executable to run. We do provide runtimes that will allow applications to run on machines without that specific PowerShell 7 version installed:
https://www.sapien.com/blog/2020/08/12/ ... -net-core/
You may find the following article helpful:https://www.sapien.com/blog/2020/08/12/ ... -net-core/
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Compile to Generic PWSH 7?
Thank you, that article helped tremendously! Appreciate the quick response also.