dotnet ef dbcontext scaffold, а он падает
❯ $connectionString
Host=localhost;Schema=demo;Database=bookings;Username=postgres;Password=postgres
OrmBenchmarks/OrmBenchmarks.EFCore on master [+?] via .NET v6.0.100 � net6.0
❯ $provider
Npgsql.EntityFrameworkCore.PostgreSQL
OrmBenchmarks/OrmBenchmarks.EFCore on master [+?] via .NET v6.0.100 � net6.0
❯ dotnet ef dbcontext scaffold "$connectionString" $provider
Build started...
Build succeeded.
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.0' (x64) was not found.
- The following frameworks were found:
3.1.17 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
5.0.8 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
6.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=win10-x64
У тебя там серьёзно неткор второй? Кажется, он просто не поддерживается уже?
чуть выше csproj кинул. Шестой есесено
Обсуждают сегодня