I noticed that when Visual Studio 2012 loads / initializes projects (when opening a solution or when changing platforms / configurations), it can fulfill some of the goals of MSBuild - those that are listed as InitialTargets(do not always do this - sometimes it waits until you have it don’t build, I can’t understand exactly when, but this is another question).
In any case, these targets may generate some output in the form of MSBuild messages. If the goals were executed as part of the assembly, these messages went to the Visual Studio output window (and possibly a log file). These "load time targets" do not seem to send their output to the output window.
How can I view or register the output of MSBuild targets that run outside of the build time and, in particular, during initialization?
source
share