Hello All
I’ve created a new module and manifest powershell v4
I understand how to put these together with the directoryName and psm1 & psd1 being all the same name, the module path being in the PSModulePath
I also understand the load order of these (psd1 then psm1)
The weird behavior I’m encountering is this:
When I have the module in my local module path (in my MyDocuments\WindowsPowerShell\Modules\MyModule)
I use import-module MyModule -verbose
I see that the manifest is read first (psd1) then the module file (psm1), and things work as expected.
Because some others will use this module I setup a network location (e.g. \SERVER\Scripts\Modules\MyModule) place the files there
and move the module directory to that folder, add the path to the PSModulePath.
When I run 'import-module MyModule -verbose the psm1 file loads but not the psd1. Moving it back to my local directory and trying again, works as expected.
Am I missing something ?
Regards,