无法在Teamcity中运行migrate.exe

时间:2015-12-04 21:29:04

标签: entity-framework teamcity-9.0

我有以下非常简单的PowerShell脚本

packages\EntityFramework*\tools\migrate.exe /?

当我在powershell控制台中运行此脚本时,它会显示预期的输出(列出migrate.exe的所有可能参数)

但是,当我使用PowerShell构建步骤或甚至命令行构建步骤从Teamcity运行相同的脚本时,我收到以下错误

Unhandled Exception: System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError (Int32 errorCode, String maybeFullPath)
at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
at System.Data.Entity.Migrations.Console.Program.Main(String[] args)

enter image description here

0 个答案:

没有答案
相关问题