You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched this repository along with the sqlclient repository. There are multiple issues bring this up but are either closed or solutions provided don't seem to fix the issue I'm getting.
I'm trying to create a basic binary module in PowerShell against SQL Server. I have a basic project structure with just one cmdlet so far (trying to see if this even works) that references SMO library.
Describe the bug
I've searched this repository along with the sqlclient repository. There are multiple issues bring this up but are either closed or solutions provided don't seem to fix the issue I'm getting.
I'm trying to create a basic binary module in PowerShell against SQL Server. I have a basic project structure with just one cmdlet so far (trying to see if this even works) that references SMO library.
Project: https://github.com/wsmelton/dbalight/tree/modulebuilder/source/dbalight
The project compiles for dotnet 6 on my M1 and the module imports with no issues. It is not until I call the
Connect-DblServer
:Line 41 of that cs file for the cmdlet is:
ServerConnection srvCn = new ServerConnection();
Expected behavior
Runs without exception.
Further technical details
PowerShell 7.2+
Apple Mac M1
Microsoft.Data.SqlClient version: 5.1.1
.NET target: 6.0
Operating system: Windows 11
Additional context
Original issue: microsoft/sqlmanagementobjects#149
Following module is requied:
The text was updated successfully, but these errors were encountered: