PowerShell / WindowsCompatibility

Module that allows Windows PowerShell Modules to be used from PSCore6
Other
137 stars 33 forks source link

Fix use of Windows Compat Pack #12

Closed SteveL-MSFT closed 6 years ago

SteveL-MSFT commented 6 years ago

For this module to be compatible with Windows PowerShell, need to build targeting .Net Framework while also building for netcoreapp20 for PSCore6. Fix is to update build script to build for both and compose a module that includes both sets of assemblies. The .Net Framework assemblies are shims that point to the real implementation in the GAC. However, the assemblies for dotnetcore need to specify the runtime so that the implemented assemblies and not the reference assemblies are in the package.

Because we need to load different sets of assemblies depending on the runtime, need to move loading of the assemblies from the module manifest to the module.

Manually validated with AD Module.