I've created a module manifest .psd1
file and I've used Test-ModuleManifest
on it which returns nicely and shows the two CmdLets in the binary C# .dll.
The manifest file is in a folder under c:\Program Files\WindowsPowerShell\Modules
but when I run Get-Module -ListAvailable
it is not showing.
If I run Get-Module
it is not showing.
If I run one of the CmdLets then the module is automatically imported and shows when I next run Get-Module
.
What am I misunderstanding?? Why doesn't it show as available?
Update
Just done this again with a script module, psm1
and psd1
on a different machine, and same problem. It doesn't show as available and yet posh-git
which seems to be setup in a similar way, does.
答案 0 :(得分:2)
好的,我修复了清单中的版本与我放入的子文件夹名称之间的版本不一致后,脚本模块 现在出现了。
派上用场:
ID RuCitySize qsex age ranges url used_at active_seconds
f78f67101c3aeb099212b8aa9a95dfd2 500-млн Женский 18-24 lada.ru 03.01.2016 20:18 66.25557348
f78f67101c3aeb099212b8aa9a95dfd2 500-млн Женский 18-24 lada.ru/cars/vesta/sedan/tth.html 03.01.2016 20:18 51.5321127
f78f67101c3aeb099212b8aa9a95dfd2 500-млн Женский 18-24 lada.ru/cars/4x4/3dv/prices.html 03.01.2016 20:20 22.08519116
f78f67101c3aeb099212b8aa9a95dfd2 500-млн Женский 18-24 lada.ru/cars/4x4/3dv/1.7_8_mkpp/lux/017/114/card.html 03.01.2016 20:20 29.44692154
740e2b36a4fa2d145436293522f5f5d5 500-млн Женский 18-24 penza-avto.lada.ru/ds/cars 05.01.2016 12:51 7.361730386
740e2b36a4fa2d145436293522f5f5d5 500-млн Женский 18-24 penza-avto.lada.ru/ds/cars/granta/liftback/prices.html 05.01.2016 12:51 66.25557348