743a964392
Export-ModuleMember cmdlet throws an exception if module functions are exported across language boundaries (Windows only). But a scriptblock LanguageMode property can be null if the scriptblock is created without a PowerShell context, and this can happen through the PowerShell API called from C#. In this case Export-ModuleMember throws erroneously when no language mode restrictions are in play. Fix is to check if LanguageMode is null before comparing context and scriptblock language modes. |
||
---|---|---|
.. | ||
CimCmdlets | ||
Microsoft.PowerShell.Core | ||
Microsoft.PowerShell.Diagnostics | ||
Microsoft.Powershell.Host | ||
Microsoft.PowerShell.LocalAccounts | ||
Microsoft.PowerShell.Management | ||
Microsoft.PowerShell.Security | ||
Microsoft.PowerShell.Utility | ||
Microsoft.WSMan.Management | ||
PackageManagement | ||
PowerShellGet | ||
PSDesiredStateConfiguration | ||
PSReadLine | ||
ThreadJob |