Logging exception messages when using ms build task 

I have added logging when exceptions are thrown while running the msbuild task. 

To get all the references correct when building I amended how 3.5 and 4.0 projects references are included throughout the solution.

Tali