Ours is a SL application. Therefore, the tests are contained in a SL class library. I notice a few problems in the build log -
1) TC doesn't use MsTest.exe even though I've given it the full path (as VS is not installed on the default location on the server). It uses NUnitLauncher.exe.
2) It is able to locate the correct test assembly, but gives me this error -
[16:31:01][Step 2/2] Unable to load the test container 'E:\TeamCity\buildAgent\work\7538393f095686f7\eBenefitSync\test\Tmg.EBenefitSync.Presentation.UI.Lookups.Tests\Bin\Debug\Tmg.EBenefitSync.Presentation.UI.Lookups.Tests.dll' or one of its dependencies. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=184.108.40.206, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
This test project has a reference to System.Windows (version 220.127.116.11), so why is TC complaining about version 18.104.22.168?
Also I can't give any MsTest metadata file to build configuration step, because it is not a normal MsTest unit test project (and so doesn't have a .vsmdi file).
Please let me know how to configure this so that it runs the unit tests properly.
Note: SL version 5 is installed on the server.