You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NUKE Execution Engine version 7.0.2 (Windows,.NETCoreApp,Version=v6.0)
Description
EntityFrameworkTasks expects dotnet-ef to be added as a dotnet tool instead of allowing it to be added as a nuget package reference via nuke :add-package dotnet-ef
Reproduction Steps
Given the following task:
Target EF =>_ => _.Executes(()=>{ EntityFrameworkTasks.EntityFrameworkDatabaseDrop());});
Running nuke EF throws the following exception
09:27:02 [INF] > "C:\Program Files\dotnet\dotnet.exe" ef database drop
09:27:03 [ERR] Could not execute because the specified command or file was not found.
09:27:03 [ERR] Possible reasons for this include:
09:27:03 [ERR] * You misspelled a built-in dotnet command.
09:27:03 [ERR] * You intended to execute a .NET program, but dotnet-ef does not exist.
09:27:03 [ERR] * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
This is expected as I haven't added dotnet-ef to the project.
So I now run
nuke :add-package dotnet-ef
But running nuke EF throws the same exception
Expected Behavior
I would expect that all that was required to use EntityFrameworkTasks would be to install the dotnet-ef nuget package via nuke :add-package dotnet-ef
Actual Behavior
The actual behaviour is that you are required to install dotnet-ef as a dotnet tool via
dotnet new tool-manifest
dotnet tool install dotnet-ef
Regression?
No response
Known Workarounds
The issue stems from the tool using dotnet.exe as the tool executable rather than dotnet-ef.exe.
@matkoch This would be a breaking change to anyone who had not installed dotnet-ef as a nuget package via nuke :add-package dotnet-ef. Are you still happy for the change to go ahead?
Usage Information
NUKE Execution Engine version 7.0.2 (Windows,.NETCoreApp,Version=v6.0)
Description
EntityFrameworkTasks
expectsdotnet-ef
to be added as adotnet tool
instead of allowing it to be added as a nuget package reference vianuke :add-package dotnet-ef
Reproduction Steps
Given the following task:
Running
nuke EF
throws the following exceptionThis is expected as I haven't added
dotnet-ef
to the project.So I now run
But running
nuke EF
throws the same exceptionExpected Behavior
I would expect that all that was required to use
EntityFrameworkTasks
would be to install thedotnet-ef
nuget package vianuke :add-package dotnet-ef
Actual Behavior
The actual behaviour is that you are required to install
dotnet-ef
as a dotnet tool viaRegression?
No response
Known Workarounds
The issue stems from the tool using
dotnet.exe
as the tool executable rather thandotnet-ef.exe
.We could resolve
dotnet-ef
usingBut we would then have to change the tasks to not prefix the commands with
ef
. For exampleef database drop
would need to change todatabase drop
Could you help with a pull-request?
Yes
The text was updated successfully, but these errors were encountered: