面向.NET 3.5时,VS2010无法将单元测试排队 [英] VS2010 fails to queue unit tests when targeting .NET 3.5

查看:139
本文介绍了面向.NET 3.5时,VS2010无法将单元测试排队的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近更换了PC,现在我的新计算机将无法运行针对.NET 3.5的C ++单元测试.我已安装VS2010 + SP1Rel.而且,我遵循了此处列出的其他配置步骤: http://msdn.microsoft.com/library/gg601487.aspx#re-targeting35AdditionalSteps

I recently had my PC replaced, and now my new machine won't run our C++ unit tests that are targeting .NET 3.5.  I have VS2010 + SP1Rel installed.  And I've followed the additional configuration steps listed here: http://msdn.microsoft.com/library/gg601487.aspx#re-targeting35AdditionalSteps

即使我的旧PC(还安装了VS2010 + SP1Rel)上运行了相同的测试,我仍然无法运行单元测试.当我尝试在IDE中并通过VS2010命令提示符运行单元测试时,出现以下错误 机器名称为[xxx]:

I'm still unable to run the unit tests, even though the same tests ran on my old PC (which also had VS2010 + SP1Rel installed).  I get the following errors when I try to run the unit tests in the IDE and via the VS2010 command prompt, where my local machine name is [xxx]:

警告,2011年10月10日下午4:52:25无法在代理[xxx]上为测试运行的测试排队''[xxx]  2011-10-10 16:52:25' :类型'System.Runtime.Serialization.TypeLoadExceptionHolder'的对象不能转换为类型'System.Collections.Generic.Dictionary`2 [System.Uri,Microsoft.VisualStudio.TestTools.Common.AgentRuleDataCollector]'.

警告/2011/10/10 4:52:25 PM 测试运行'[xxx] 2011-10-10 16:52:25'无法执行.没有代理被标记为在线以执行测试运行.

如果使用VS2008命令提示符,我可以运行单元测试,但这确实很不方便,我希望能够从IDE中运行测试.

I am able to run the unit tests if I use the VS2008 command prompt, but that is really inconvenient and I'd like to be able to run the tests from the IDE.

此处针对beta版本打开了一个连接问题,但该问题被标记为不可复制,并且没有解决方法:

There was a connect issue opened here for the beta version, but it was marked not reproducable and has no workaround:

http://connect.microsoft.com/VisualStudio/feedback/details/647529/mstest-from-vs2010-sp1-beta1-cant-run-tests-for-3-5

我见过的大多数其他帖子都没有找到解决方法,并且大多数人都放弃了.有没有人遇到这个问题并找到解决方案?

Most of the other posts I've seen have found no resolution, and most people have given up.  Has anyone ran into this issue and found a resolution?

推荐答案

我不确定该问题的根本原因,但是如果您使用的是控制器和代理,是否可以确保在包装盒,控制器和代理上安装了相同的版本.

I am not sure about the root cuse of the issue but if you are using controller and agents, can you make sure that the same version is installed on your box, the controller and the agents.

谢谢

Anuj


这篇关于面向.NET 3.5时,VS2010无法将单元测试排队的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆