PrimalScript 2020 adds PowerShell 7 support

PrimalScript 2020 (7.7.139) adds PowerShell 7 support. While we have had the ability to run scripts in a PowerShell 6 or 7 console for some time, support for new language elements, packaging, etc. was not implemented yet.
Now that PowerShell 7 was released, we have added full support for it across the board. I should note here that we do not install PowerShell 7 for you. If you need to download and install it, you can do so from here:
https://github.com/PowerShell/PowerShell/releases/tag/v7.0.0

image

PrimalScript 2020 can now run PowerShell scripts with the new PowerShell 7 engine the way you are used to. Simply run your script, and the output appears in the output panel.

image

Debugging PowerShell 7 scripts works just the same way as debugging with Windows PowerShell.

image

It is easier than ever to switch between the PowerShell version you want to use; Windows PowerShell or PowerShell 7 using .NET Core 3.1. You can edit, debug, run, and test without having to change the tool.

image

Packaging for PowerShell 7 is also supported. At this time, we have options for Windows and console applications. Support for the other packager targets will be added soon.

Please note that packaging for PowerShell 7 produces .NET core applications, which need the .NET Core 3.1 runtime installed. There are a few other differences to the Windows PowerShell packager host you are familiar with, which we will point out in a separate blog post very soon.

image

The freshly minted SAPIEN Script Explorer also has the option to run scripts with Windows PowerShell or PowerShell 7. What is the SAPIEN Script Explorer you ask? Read about it here: https://www.sapien.com/blog/?p=19645

image

And of course the PowerShell Cache Editor – the tool controlling which modules and what version you get PrimalSense for — also supports the new PowerShell 7 cache, which is now automatically built after installing PrimalScript 2020. If you install PowerShell 7 after this PrimalScript build (7.7.139) , you will need to run the Cache Builder again.

As always, please use our feedback forum (https://www.sapien.com/forums/viewforum.php?f=23)  to let us know what you think. Suggestions? Requests? Critique? Post them there.