Been running into an unfortunate issue with the WinForms designer on PSScriptPad. I’m unable to add some specific controls, even to brand new forms, including SplitContainer and ToolStripContainer. I get the following message:
Piped error: Failed to create component ‘SplitContainer’. The error message follows:
System.NullReferenceException: Object reference not set to an instance of an object.
I thought it was an issue with my installation at first, so I tried it across two physical machines and one virtual machine and I get the same result. I also tried it both using the Pro Tools VS Code extension and the standalone PSScriptpad.exe.
I’ve ran as admin and set my execution policies between bypass and unrestricted. No luck.
Tried to work around it by manually creating the SplitContainer object within the designer.ps1 and, while running the mainform dialogue displays the control, editing it through the designer does not.
EDIT: Tried previous versions of PSScriptPad.exe and they all seem to do the same thing… maybe I’m missing something?