Closed dfinke closed 9 years ago
The module has to be referenced from a .psd1 that's in the PSModulePath.
The plugin loader goes thru all the modules in the PSModulepath and looks for modules that contain a PrivateData something like :
PrivateData = @{"OneGetProviders" = 'MyProvider.psm1'}
in the manifest.
it will then load the specified psm1 file as the provider.
with the sample you should be able to go into the sample folder and run the run_oneget.cmd
script and it will load that provider.
No go. I grabbed the wip branch but don't see the sample folder or run_oneget.cmd
Oh, no -- grab the sample at http://oneget.org/provider-ps.zip
Works like a charm
I downloaded the latest OneGet.
I added MyTestPackageProvider.psm1 (also tried MyTest.psm1) to the $PSHOME\Modules\oneget. Did an
ipmo oneget -force
, then triedGet-PackageProvider
but don't see this provider there.