You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Respect CompatiblePSEditions field in module manifests, with sane default #6991
Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsWG-Enginecore PowerShell engine, interpreter, and runtime
For Windows PowerShell/PowerShell Core modules to have a clear cross-compatibility story, we need PowerShell Core to respect the CompatiblePSEditions field.
This means, for PowerShell Core:
Get-Module -ListAvailable lists only those modules on the module path that are Core compatible
Import-Module will only import a module that is Core compatible and throw an error otherwise
The absence of the CompatiblePSEditions field should imply a sane default. The current suggested default is CompatiblePSEditions = @('Desktop'), i.e. compatible with Windows PowerShell (since there is no such field in Windows PowerShell and modules written for it only would lack this field by default).
changed the title [-]Respect PSCompatibleEdition field in module manifests, with sane default[/-][+]Respect CompatiblePSEditions field in module manifests, with sane default[/+]on Jun 14, 2018
Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsWG-Enginecore PowerShell engine, interpreter, and runtime
Activity
rjmholt commentedon Jun 4, 2018
See also: #6992
rjmholt commentedon Jun 13, 2018
Tagging @PowerShell/powershell-committee for discussion. I think we're also going to do an RFC for this, yes?
[-]Respect PSCompatibleEdition field in module manifests, with sane default[/-][+]Respect CompatiblePSEditions field in module manifests, with sane default[/+]rjmholt commentedon Jun 14, 2018
We should also clarify the difference between
PSEditionandCompatiblePSEditionSteveL-MSFT commentedon Jun 14, 2018
Rob Holt (@rjmholt) yes, RFC to be published shortly
SteveL-MSFT commentedon Jun 15, 2018
PowerShell/PowerShell-RFC#130