NetworkingDsc: "Import-DscResource Could not find the module" due to ModuleVersion Key not matching Folder Directory #416
Labels
needs investigation
The issue needs to be investigated by the maintainers or/and the community.
I am able to Install-Module successfully. However when try to Import-DSC Resource within my configuration PowerShell shows an error "Could not find the module 'NetworkingDsc'
When running Test-ModuleManifest there is an issue with the ModuleVersion Key not matching the folder name
Test-ModuleManifest : The ModuleVersion key in module manifest 'C:\Program Files\WindowsPowerShell\Modules\NetworkingDsc\7.3.0\NetworkingDsc.psd1' specifies module version '7.3.0.0' which does not match its version folder name at 'C:\Program
Files\WindowsPowerShell\Modules\NetworkingDsc\7.3.0'. Change the value of the ModuleVersion key to match the version folder name.
At line:1 char:1
Details of the scenario you tried and the problem that is occurring
Verbose logs showing the problem
Install-Module NetworkingDsc -Repository WMP_Share -Force -Verbose
VERBOSE: InstallPackageLocal' - name='NetworkingDsc', version='7.3.0',destination='C:\Users\USR _Name\AppData\Local\Temp\1411520941'
VERBOSE: Catalog file 'NetworkingDsc.cat' is not found in the contents of the module 'NetworkingDsc' being installed.
VERBOSE: Module 'NetworkingDsc' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\NetworkingDsc\7.3.0'.
At line:8 char:5
Could not find the module 'NetworkingDsc'.
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The text was updated successfully, but these errors were encountered: