Unable to import module on powershell core 6.2.2 on linux
When trying to import the SqlServer module on Linux I receive an error (see attached screenshot)
I think I found the issue in this line $assessmentFormatFile = Join-Path -Path $PSModuleRoot -ChildPath "Microsoft.SqlServer.Assessment.Format.ps1xml"
in the SqlServer.psm1 file.
The actual file name is Microsoft.SqlServer.Assessment.format.ps1xml
the F in the format is lowercase
when changing the filename to match the code the import completes successfully.
Thanks for the reporting the issue.
This was found and fixed a few days after releasing version 21.1.18147 of the module.
The fix will be rolled into the upcoming version of the module.