[xbuild] Handle unknown exceptions.
authorAnkit Jain <radical@corewars.org>
Fri, 11 Mar 2011 13:05:19 +0000 (18:35 +0530)
committerAnkit Jain <radical@corewars.org>
Fri, 11 Mar 2011 13:16:19 +0000 (18:46 +0530)
commit03f08179920933a57d3588946acada870a42e5d5
tree159e23f75c1f18bab307a10f13b712b91c5116bc
parent9d28791c5a0ad19894636d0b2423b179d8af16d9
[xbuild] Handle unknown exceptions.

Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Engine.cs
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs