[xbuild] Reset ConsoleLogger when a build finishes.
authorAnkit Jain <radical@corewars.org>
Tue, 12 Oct 2010 23:21:04 +0000 (04:51 +0530)
committerAnkit Jain <radical@corewars.org>
Tue, 12 Oct 2010 23:27:57 +0000 (04:57 +0530)
commit010fd9b8079093b1043b8b4fa8a3bd825120e920
treef60f18f81ad93958c27dbbdab96d3f776bb5db9e
parentac277b39174e951be447895aa09b887d8ac91aec
[xbuild] Reset ConsoleLogger when a build finishes.

MSBuild hosts like monodevelop, which use the same logger
for multiple builds, get errors/warnings from older builds.
So, reset them whenever the BuildFinished event is raised.

ILogger.Shutdown () is invoked when the host is about to quit,
according to msdn, so can't use that.
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ConsoleLogger.cs