I have the following very simple powershell script
packages\EntityFramework*\tools\migrate.exe /?
when I run this script in a powershell console it shows the expected output ( lists all the possible parameters of migrate.exe )
However, when I run the same script from Teamcity using a powershell build step or even a command line build step, I get the following error
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)