Steps to reproduce
On Linux/Mac:
Open any module .psd1 file and update/ add the following line:
ProcessorArchitecture = 'Amd64'
OR
ProcessorArchitecture ='x86'
Please note: ProcessorArchitecture='None' seems to work.
Expected behavior
The module should be discoverable using Get-Module -ListAvailable and Import-Module should work fine as it does on Windows.
Actual behavior
The module is not listed using Get-Module and Import-Module fails with this error:
Import-Module : Unable to load DLL 'api-ms-win-core-sysinfo-l1-1-0.dll': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
At line:1 char:1
+ Import-Module Standard
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], DllNotFoundException
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand
Environment data
Steps to reproduce
On Linux/Mac:
Open any module .psd1 file and update/ add the following line:
ProcessorArchitecture = 'Amd64'
OR
ProcessorArchitecture ='x86'
Please note: ProcessorArchitecture='None' seems to work.
Expected behavior
The module should be discoverable using Get-Module -ListAvailable and Import-Module should work fine as it does on Windows.
Actual behavior
The module is not listed using Get-Module and Import-Module fails with this error:
Environment data