Skip to content

Package issue - missing arm64 sub-folder #118

@davecluderaythinventory

Description

I have a Windows VM running in Parallels on a Mac with an M4 processor.
After installing the module into an up-to-date PowerShell Core, I tried to issue a query using Invoke-Sqlcmd.
This produced an error:

Invoke-Sqlcmd: Unable to load DLL 'Microsoft.Data.SqlClient.SNI.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

After investigating the folder structure, this seems to be fixed by performing the following actions:

$modulePath = Split-Path (Get-Module SqlServer -ListAvailable).Path
$arm64Dir = "$modulePath\coreclr\runtimes\win\lib\net6.0\win-arm64"
mkdir $arm64Dir -Force | Out-Null

Copy-Item `
  "$modulePath\Microsoft.Data.SqlClient.SNI.arm64.dll" `
  "$arm64Dir\Microsoft.Data.SqlClient.SNI.dll.dll"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions