I have a command that will pull data from a SQL database and import it into a title block. This worked fine in .net framework. I recently migrated to 2025 and .net 8.0 and I am getting the following error: System.PlatformNotSupportedException: 'Microsoft.Data.SqlClient is not supported on this platform.'
I created a test console app in .net 8.0 and I am able to pull data from that database that way. Has anyone else run into this issue?
Solved! Go to Solution.
Solved by CBennett34F8SS. Go to Solution.
nevermind I found it, for some reason Microsoft.Data.SqlClient is not choosing the correct runtime .dll to load. I specified it in my project file with <RuntimeIdentifier>win-x64</RuntimeIdentifier> and it is now working again.
For anyone else :
I noticed this today
https://adndevblog.typepad.com/autocad/2024/05/connecting-to-sql-server-from-autocad-2025.html
Perhaps this article by Madhukar Moogala @moogalm will help those with an SQL issue.
Regards,
// Called Kerry in my other life.
Everything will work just as you expect it to, unless your expectations are incorrect.
class keyThumper<T> : Lazy<T>; another Swamper
<RuntimeIdentifier>win-x64</RuntimeIdentifier> was the Solution!
Perhaps ypu guys need to look at this :
https://github.com/MadhukarMoogala/ACAD-SQLPlugin
From 3 months ago.
// Called Kerry in my other life.
Everything will work just as you expect it to, unless your expectations are incorrect.
class keyThumper<T> : Lazy<T>; another Swamper
I have also strugled with this when i first tried to get all my tools to work in .net 8.0 i also use a sql database and there wasnt allot of info around at the time. Im glad to see that there are now
Can't find what you're looking for? Ask the community or share your knowledge.