I have a particular unit test which is causing an AppDomainUnloadedException to show up in the build log. The test seems to run without any problems in Visual Studio (both on my workstation and Visual Studio running on the build server over remote desktop).
This is the output in the build log:
System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.
There are a couple of problems here:
1) It was very hard to discover which test was causing the problem, since the log file doesn't provide any indication about this
2) I need to find a way to catch and swallow this error, so that the build log is clean.