Test error with "Method not found" error

I configured the BizTalk UnitTest Project to run each test in TFS, but the test run with the error below:

Method not found: "Microsoft.VisualStudio.TestTools.TestManagement.ControllerProxy Microsoft.VisualStudio.TestTools.TestManagement.Tmi.GetControllerProxy (Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, System.Object).

Error Details:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe /nologo /usestderr /searchpathroot:"C:\Builds\29\BizTalk\<proj>\Binaries" /resultsfileroot:"C:\Builds\29\BizTalk\<proj>\TestResults" /testcontainer:"C:\Builds\29\BizTalk\<proj>\Sources\BizTalk\<solution>\C<proj>.UnitTest\bin\Release\<proj>.UnitTest.dll" /publish:"<TFS path>" /noprompt /publishbuild:"vstfs:///Build/Build/2592" /teamproject:"BizTalk" /platform:"Any CPU" /flavor:"Release" 
Loading C:\Builds\29\BizTalk\<proj>\Sources\BizTalk\<soln >\<proj>.UnitTest\bin\Release\<proj>.UnitTest.dll...
Starting execution...
Microsoft (R) Test Execution Command Line Tool Version 12.0.21005.1
Copyright (c) Microsoft Corporation. All rights reserved.
For switch syntax, type "MSTest /help"
**Method not found: 'Microsoft.VisualStudio.TestTools.TestManagement.ControllerProxy Microsoft.VisualStudio.TestTools.TestManagement.Tmi.GetControllerProxy(Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, System.Object)'.**
+4
source share
1 answer

If multiple VS versions are installed on the Build Server, verify that the correct version of MSTest.exe is used by the Build Server to run the unit test.

, MStest.exe "ToolPath" "Run MSTest activity" BTDF .

+1

All Articles