小编Ric*_*ain的帖子

无法将自定义 dotnet 命令作为 TeamCity 构建步骤运行

当前设置:

  • 运行 Ubuntu 18 的服务器
  • TeamCity Professional 2019.2(内部版本 71499)

我正在使用以下命令设置构建任务以生成 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)

.net teamcity entity-framework-migrations

5
推荐指数
1
解决办法
293
查看次数