Currently, for my modules, I store actual code in a separate file from PSM1 file, then dot source it and use Export-ModuleMember
to export Functions, this way it allows me easily debug/test individual functions.
I assume it's not possible since Export-ModuleMember
does not give the option to export DSCResource but is it possible to have a similar setup for class based DSC Resources?
Bug filed against WMF 5.0. Please upvote.