Allow dot sourcing PowerShell Classes based DSC Resources into the psm1 module file
WMF 5.0 lets you create DSC Resources using Powershell Classes like so:
But right now it will only look in the .psm1 file. If you try to dot source a class based DSC resource into the .psm1 file then Get-DSCResource can't find it and it can't be used in DSC configurations.
We have many DSC resources combined into a single module, and our .psm1 file is getting difficult to manage. If two people are working on different resources they are likely to have a git merge conflict.
We would prefer to have the resources defined in separate files and then dot source them into the .psm1 file, similar to how other modules are designed.
We are working on enabling support for multiple psm1 files. This will allow you to group different class-based DSC resources into different files.
You can get a glimpse of how it will work based on a reverted pull request on our documentation @ https://github.com/PowerShell/PowerShell-Docs/pull/215/files