I feel like I may be doing something wrong here, but I’m trying to evaluate the Powershell Toosl using VS 2019.
I create a new project in VS 2019 > Powershell Windows Forms Project > Create a project name.
I’m at the initial project page showing my .ps1 file. I can right-click and choose View Designer and see the initial form, similar to a C# windows forms project.
If I then add a control or even resize the form, go back to the .ps1 file and so much as add a carriage return to the code page, and then go back to the designer I get a designer error page.
“Could not find type ‘System.Drawing.Size’. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.”
Am I just doing something completely wrong here?
Click on the pic below to link to the imgur album with screenshots.