I want to scaffold a SQL Server and output to a project.
I have a solution with 2 projects:
They both have these dependencies
I want the scaffolded data in project Scaffolded
.
In the solution folder I run this command:
dotnet ef dbcontext scaffold "<MyConnectionString>"
Microsoft.EntityFrameworkCore.SqlServer
--startup-project Scaffolder --project Scaffolded --output-dir Models --force
I get this output:
Build started...
Build succeeded.
Could not load assembly 'Scaffolded'. Ensure it is referenced by the startup project 'Scaffolder'
Why do I get this error?
I run Entity Framework Core .NET Command-line Tools 5.0.2
Just use EF Core Power Tools - but upgrade to EF Core 6, EF Core 5 is no longer supported.