Classes in multiple files
Posted: Mon Jul 01, 2019 9:18 pm
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.158
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0
I'm attempting to make a powershell project with multiple classes, and I'd like to keep each class in its own separate folder. However as these classes need to reference each other I'm having trouble as the classes don't seem to know about each other.
Startup.pss is able to get type information and auto complete for classes in other files, but none of the class files themselves auto complete for other classes and Powershell Studio reports unknown types. Building the project works fine and inserting 'using module .\class.ps1' sometimes fixes the issue but it seems buggy.
To recreate, create a project add two separate class files, and add one as a member of the other.
Build: v5.6.158
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0
I'm attempting to make a powershell project with multiple classes, and I'd like to keep each class in its own separate folder. However as these classes need to reference each other I'm having trouble as the classes don't seem to know about each other.
Startup.pss is able to get type information and auto complete for classes in other files, but none of the class files themselves auto complete for other classes and Powershell Studio reports unknown types. Building the project works fine and inserting 'using module .\class.ps1' sometimes fixes the issue but it seems buggy.
To recreate, create a project add two separate class files, and add one as a member of the other.