MySqlConnector - No ExportedTypes in Powershell 5 #1266
Replies: 3 comments 3 replies
-
Works for me?
|
Beta Was this translation helpful? Give feedback.
-
The fact that it works for you gives me hope to get it working for me too - thank you for that !!! So I'm trying to understand why it doesn't work for me - maybe i did not install it correctly ? I also tried on Windows 11 and Windows Server 2019, both PS5 and this also didn't work. I did not have this issue importing the Oracle mysql connector (MySql.Data) PSVersion 5.1.22000.1335 |
Beta Was this translation helpful? Give feedback.
-
@JuGGyFreak -- Not sure if you ever found a solution to this. I found that as I started using later versions of NugetPackages for database providers in PowerShell, things became complicated, particularly if they had a lot of dependencies. I wrote a powershell module to wrap up those complexities - you might find it helpful -- you can click through my name to find the module if you are interested. |
Beta Was this translation helpful? Give feedback.
-
I can import and use MySqlConnector in Powershell 7, but can not get it to work with Powershell 5 :
[System.Reflection.Assembly]::LoadFrom("E:\lib\net461\MySqlConnector.dll") | Select-Object -ExpandProperty ExportedTypes
PS7 returns 58 types
PS5 returns nothing
Is there a solution or a work around ? or i'm i missing something here ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions