当前设置:
我正在使用以下命令设置构建任务以生成 SQL 迁移脚本:
dotnet ef migrations script --output "script.sql" --context MyContext
Run Code Online (Sandbox Code Playgroud)
但是,在 TeamCity 上运行构建时,构建失败并显示以下错误:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET Core program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found …Run Code Online (Sandbox Code Playgroud)