Closed anmenaga closed 2 weeks ago
What about cases where people split their module code without using NestedModules
?
For example, the pattern built by the DSC Community has base classes etc defined in a sub-module and has using/import statements to retrieve the code:
What about cases where people split their module code without using
NestedModules
?For example, the pattern built by the DSC Community has base classes etc defined in a sub-module and has using/import statements to retrieve the code:
PR Summary
Some PS modules do not specify
RootModule
in theirpsd1
. In such casesGet-Module
fills inRootModule
with full path topsd1
, which is misleading for discovering class-based resources. This was causing internal failures in PsDscAdapter. This PR fixes that with explicit check for such condition and adds some tracing to make diagnostics easier.