Closed AraHaan closed 2 years ago
Turns out it is because when the scaffolder tries to run build I set Configuration
to Debug
when it is not set and that folder seems just have outdated files. Deleting the folder and rerunning resulted in success for some reason.
Include your code
I think the issue is that I have a database where tables have primary and foreign keys on some tables (but not all). And after successfully changing the BaseIntermediateOutputPath to the directory above the EFCore project that holds just my DbContext and it's entities.
(It required some manual hacks to get it right)
Powershell script code (GenerateDBContext.ps1)
As for the other files will need to be attached as an zip file.
Include stack traces
Include verbose output
Note: dotnet-ef is a local build of pr #28210 as that is the only way I got the tool to try to build anything at all.
Include provider and version information
EF Core version: 7.0.0-preview.6.22302.1 (I cant downgrade to EFCore 6.0.0 bc I depend on the scaffolding templates feature in my project) Database provider: Microsoft.EntityFrameworkCore.SqlServer (Used within an local provider that extends this to add a few things like conventions for a few additional attributes not included in the normal efcore) Target framework: .NET 6.0 Operating system: Windows 11 IDE: Visual Studio 2022 Latest Public Preview