Unit test project not building from build server

后端 未结 2 1393
忘掉有多难
忘掉有多难 2020-12-30 21:35

My VS2010 solution has a test project in it. The unit tests themselves reference the following namespace:

using Microsoft.VisualStudio.TestTools.UnitTesting         


        
2条回答
  •  渐次进展
    2020-12-30 21:53

    The specific answer for me and a Visual Studio 2010 solution was:

    1. Install "Test Agent 2010" from Visual Studio Agents 2010
    2. Restart Windows
    3. Install Visual Studio 2010 Service Pack 1
    4. Restart Windows
    5. Ensure the projects References are updated to point at "Microsoft.VisualStudio.QualityTools.UnitTestFramework" "10.1.0.0" and not "10.0.0.0".

提交回复
热议问题