PlatyPS depends on YamlDotNet, which is a very common dependency of many other module, such as powershell-yaml.
Due to the different versions that different modules may depend on, this could cause a conflict in assembly loading when importing those modules in the same PowerShell session.
This PR rearranges the module folder structure, as well as how to load those the dependencies, so as to avoid PlatyPS from causing the assembly conflicts.
PR Summary
PlatyPS depends on
YamlDotNet
, which is a very common dependency of many other module, such aspowershell-yaml
. Due to the different versions that different modules may depend on, this could cause a conflict in assembly loading when importing those modules in the same PowerShell session.This PR rearranges the module folder structure, as well as how to load those the dependencies, so as to avoid PlatyPS from causing the assembly conflicts.
PR Context
Reference: https://github.com/PowerShell/PowerShell/issues/2083 See the comment https://github.com/PowerShell/PowerShell/issues/2083#issuecomment-1063583411