tareqimbasher / NetPad

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

Where are errors displayed? #151

Closed martin-flower closed 6 months ago

martin-flower commented 6 months ago

Connections > Scaffolding > One or more errors occurred

Where can I see these errors?

Skärmavbild 2024-01-15 kl  14 49 59
martin-flower commented 6 months ago

Aha, this might be the problem ..

NetPad.Middlewares.ExceptionHandlerMiddleware) An error occurred in request pipeline
System.Exception: Scaffolding process failed with exit code: 150. Errors: Build started...
Build succeeded.
You must install or update .NET to run this application.

App: /Users/martin/.dotnet/tools/.store/dotnet-ef/8.0.1/dotnet-ef/8.0.1/tools/net8.0/any/tools/netcoreapp2.0/any/ef.dll
Architecture: arm64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (arm64)
.NET location: /usr/local/share/dotnet/

The following frameworks were found:
  7.0.13 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  8.0.1 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
martin-flower commented 6 months ago

Solved by installing

'Microsoft.NETCore.App', version '6.0.0' (arm64)

tareqimbasher commented 6 months ago

Yep, currently .NET 6 runtime (or SDK) is a requirement to use Data Connections. Will be removing this dependency in a future release.