I am using Visual Studio 2017, but the same behavior was found in Visual Studio 2015.
I have several steps in my post-build events and echo messages in between, like so
echo Copying assets...
xCopy "$(TargetDir)..\..\11 Assets" "$(TargetDir)" /i /s /e /y /q
if $(ConfigurationName) == Debug goto :exit
echo Copying compiled files to release folder...
mkdir "$(TargetDir)_ForRelease"
xCopy "$(TargetDir)App.exe" "$(TargetDir)_ForRelease" /y /q
[...]
Now this all works fine, but what I wanted was to see the echo
messages appear one by one in the build output window while the post-build is running (so I know at what step in the post-build I am).
Instead, no messages are displayed during the post-build and instead all messages are displayed as one chunk after the build is completed.
I found one similar question, but it talks about the output window locking up completely, which is not the case here. Everything is responsive, the messages are just not displayed immediately.
Is there a way to solve this and display the messages immediately during the post-build, or is this just how the build process works?