0

I get this error when trying to run some UI tests through a ordered UI test. The error always happens after the first test from the ordered UI test is completed. I double checked and the dll file the error complained about is present at the location mentioned in the error.The error does not happen on a debug test run.

Yesterday it would run just fine. I updated to visual studio 15.8.1 today an suspect this is causing my ordered test to fail, especially because I already found some similar questions about this for other versions of vs. The solutions posted in the answers didn't work for me.

3 questions:

  • Can anyone confirm this is caused by the update to vs 15.8.1?
  • Did you found a solution to this problem?
  • Any possible other cause?
4

2 回答 2

1

好的,所以我深究了这一点。

显然,有序测试不会运行,因为我的项目中有一个解决方案有一些损坏的引用。解决方案中使用了引用,编译器抱怨它们,但缺少的引用并没有破坏我的代码,这至少很奇怪。重新添加这些引用,然后删除引用的文件(因此引用会再次被破坏),确实破坏了代码,我无法编译我的解决方案。

我调整了我的代码并能够删除这些引用。之后,有序测试能够再次运行。

出于某种原因,这仅在从 vs2017 15.7.6 更新到 vs2017 15.8.1 后才成为问题。

希望这将帮助一些有类似问题的人。

于 2018-08-24T08:03:43.203 回答
0

SolutionExplorer.MouseRightClick.Configuration Manager:将每个项目平台设置为“任何 CPU”解决了我的问题

于 2020-05-07T03:02:02.507 回答