So my understanding of powershell redirection is that *>&1 should redirect everything to the output stream.
Try the following from the visual studio package manager terminal on any project with Entity Framework migrations applied.
$m = (Get-Migrations *>&1)
After running, all your migrations are printed to the window, but $m is still $null.
What gives? Am I doing redirection wrong?
Edit: Seems like maybe I'm not and this should work. Here is the code for Get-Migrations
$m. I've seen this behavior before when using commandline tools which just write directly to the output stream rather than returning powershell objects. I seem to remember that in those cases I used redirection to resolve the issue but its not working here.-outvariableStart-Transcriptinstead.Trace-Commandif you really feel up to it. I cant since i dont have access to that type of environment. blogs.technet.com/b/heyscriptingguy/archive/2014/12/04/…