Metadata
PowerShell Module Manifests Tip: allowed cmdlets and variables
By Joel 'Jaykul' Bennett on 17-Jan-2010
I was under the impression that module manifests allow only DATA stuff. In fact, if you try to use cmdlets or variables in them, you get the usual Data-language errors, like this: Import-Module : The module manifest ‘C:\Modules\Test\Test.psd1’ could not be processed because it is not a valid PowerShell restricted language file. Please remove the [...]
Posted in Huddled | Tagged Manifest, Metadata, Modules, PowerShell, Windows 7 | 1 Response
Another Module Manifest Gotcha
By Joel 'Jaykul' Bennett on 14-Jan-2010
Shay Levy, ScriptFanatic, wrote about the PowerShellHostVersion on his blog this morning, explaining how it is not a field you should use in your module manifests. Of course, there’s an exception: if your module is dependent on a specific host. For instance, if you’ve written a module for PoshConsole which exploits the WpfHost display features [...]
Posted in Huddled | Tagged Error message, Globally Unique Identifier, Import-Module, Metadata, Modules, PowerShell, RequiredModules | 1 Response
A question about PowerShell Module Manifests
By Joel 'Jaykul' Bennett on 07-Jan-2010
So, I’m building the next PoshCode around modules, with CPAN as my model … Scripts are still there, but they’re still basically done the way they are now: you just upload a single file. Modules, however, will be treated specially. You’ll have to have an account to upload, but you’ll be able to just upload [...]
Posted in Huddled | Tagged CPAN, Metadata, Module Manifest, Modules, PoshCode, Windows PowerShell | 3 Responses