免得说我有三个类名Dog
,Cat
并且Tree
在匹配的文件Dog_file.psm1
中,Cat_file.psm1
和Tree_file.psm1
. 我需要用这三个文件创建一个 Powershell 模块。当我通过https://msdn.microsoft.com/en-us/library/dd878337(v=vs.85).aspx阅读时,我觉得它可以实现。
通过阅读各种帖子和文章,我认为NestedModules
财产.psd1
是一种方式。但不确定文件需要放置的文件夹结构和文件的语法究竟如何.psd1
。到目前为止找不到任何样本
以前有人这样做过吗?我在用着Powershell 5