TF270015: ‘MSTest.exe’ returned an unexpected exit code. Expected ‘0’; actual ‘1’

There is a problem in Team Build 2010 when executing Unit Test cases from a Visual Studio 2008 solution.  The test cases run, but when MSTest tries to publish the results to TFS, then you get this error: TF270015: ‘MSTest.exe’ returned an unexpected exit code. Expected ‘0’; actual ‘1’.  Not very informational, and pretty cryptic.  […]