PowerShell Studio Forms are not compiling when using PS 7

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 4 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.
pgessford
Posts: 7
Last visit: Fri Sep 09, 2022 10:47 am
Has voted: 1 time

PowerShell Studio Forms are not compiling when using PS 7

Post by pgessford »

PSStudio 5.8.196
Operating system: Win10
PowerShell version(s): 7.2.0

Currently working on a GUI application in PowerShell Studio. When working with PS7, my forms don't seem to compile or run. To test this, I have created a bare form with a text control (from the PSStudio templates) with no other controls, nor any of my own PS code. On the Home Tab > Platform Section, when I have v5 64bit selected, I can compile and run a GUI application. Clicking the RUN button causes a GUI application to appear.

>> Running (test.psf) Script...
>> Platform: V5 64Bit (STA) (Forced)

*** PowerShell Script finished. ***
>> Execution time: 00:00:03
>> Script Ended

However, if I have v7-64 bit selected, when I click the Run button, the output window simply shows:

>> Running (test.psf) Script...
>> Platform: V7 64Bit (STA) (Forced)
>> Script Ended

and no form is generated.

Unfortunately, I am using some cmdlets that require version 7
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Thu Mar 28, 2024 6:54 am
Answers: 39
Been upvoted: 30 times

Re: PowerShell Studio Forms are not compiling when using PS 7

Post by brittneyr »

As of the latest build of PowerShell Studio (5.8.196), the latest PowerShell 7 versions supported are 7.1.5 and 7.0.8.

You should still be able to run via a PowerShell 7 console (Ctrl + f8) until official support is added.
Brittney
SAPIEN Technologies, Inc.
This topic is 2 years and 4 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.