Open BrewingCoder opened 3 weeks ago
Task code that generates error, model and context in different assemblies so Project/Startup Project parameters required
EntityFrameworkTasks.EntityFrameworkDatabaseDrop(s => s
.SetProject("mh3.Data")
.SetContext("AppDbContext")
.SetStartupProject("mh3.Web")
.SetNoBuild(true)
.SetForce(true)
);
Usage Information
.net 8 / Nuke 8.1.0 / EF 8.0.8
Description
All builds that called EntityFrameworkTasks.* fail, these worked previously by calling "dotnet ef" Nuke requests dotnet-ef package be installed used Nuke :addpackage to add requested version of dotnet-ef Nuke then runs the command
C:\Program Files\dotnet\dotnet.exe" C:\Users\LocalUser\.nuget\packages\dotnet-ef\8.0.8\tools\net8.0\any\dotnet-ef.dll ef database drop --force --context AppDbContext --project mh3.Data --startup-project mh3.Web --no-build
That command is invalid
Reproduction Steps
add EntityFrameworkTasks.EntityFrameworkDatabaseDrop Task. Have Nuke fail because dotnet-ef not installed use AddPackage to add dotnet-ef to build project Have nuke task fail because command incorrectly generated
Expected Behavior
go back to either using "dotnet ef" or fix dotnet-ef command generation. related to #1213
Actual Behavior
build fails: