tareqimbasher / NetPad

A cross-platform C# editor and playground.
MIT License
1.31k stars 67 forks source link

Cannot add SQL connection: scaffolding requires .net 6 #146

Closed nZeus closed 9 months ago

nZeus commented 9 months ago

Hello,

I use MacOS, and I have .NET 7 and .NET 8 installed. NetPad is v0.6.0, ef tool is v8.0.

I'm trying to add a SQL connection, but it crashes with the following error:

One or more errors occurred. (Scaffolding process failed with exit code: 150. ... You must install or update .NET to run this application.:

image
tareqimbasher commented 9 months ago

Correct, as mentioned in README, .NET 6 runtime (or SDK) is required if you want to add connections. I'm working on removing that dependency in a futuree release, but for now you do infact need .NET 6.0 runtime or SDK installed.

nZeus commented 9 months ago

Ah, indeed. I didn't see it is mentioned in the readme. Thank you for your work! It's a great tool!

tareqimbasher commented 9 months ago

Thank you, glad you're enjoying it!