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.
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.