Displaying DateTime System in Output Window during Visual Studio 2008 Build
Does anyone know how to set Visual Studio 2008 to display the current date / time at the end of the build? I set it up to display details, but it just shows the build start date / time plus the elapsed time.
I asked a similar question a while ago and found that the answer was using Log4Net and using TraceAppender .
If you need more help on Log4Net etc .. just ask.
There is also a really kewl application called DebugView (created by the infamous SysInternals team) that allows you to debug in an external application ... and watch it live in a log!
From the L4N FAQ ...
By default, the Trace system will send a message to the attached debugger (where the messages will appear in the output window). If no debugger is attached to the process, messages are sent to the system debugger. A utility such as DebugView from http://www.sysinternals.com can be used to capture these messages.
(source: microsoft.com )
The new way I found is to call the command Time
on the post-build event command line:
TIME /T