Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to organize classes in namespaces?

Didn't find any information it by googling. Is it possible to somehow organize own PowerShell 5 classes in namespaces?

like image 899
Moerwald Avatar asked Sep 18 '25 17:09

Moerwald


1 Answers

Ok, at the end I used the layout/code described under this link. To import the classes I had to use using module ..\..\Classes. As described here I couldn't use Import-Module, since this cmdlet won't import any classes.

like image 191
Moerwald Avatar answered Sep 21 '25 13:09

Moerwald