- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我根据文档添加了测试适配器和框架包 https://docs.microsoft.com/en-us/visualstudio/test/live-unit-testing-faq?view=vs-2017 .
我在每个测试旁边看到“烧杯”符号\图标,但悬停表示它已从实时单元测试中排除。
手动测试都运行良好,我尝试右键单击并告诉它包括在内,但什么也没做。我在这里没有手动排除任何代码......
.net 4.7.1 项目
编辑
有错误
[10:03:48.205 Error] [TestRunner 1] An exception occurred while invoking executor 'executor://mstestadapter/v2': Could not load file or assembly 'System.Xml.ReaderWriter, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'System.Xml.ReaderWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
最佳答案
我遇到了类似的错误,在“实时单元测试”类别的输出窗口中,我发现了以下错误:
FatalError - System.AggregateException: One or more errors occurred. ---> System.Exception: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.0.0.0" />
关于visual-studio - 项目中的每个测试都说 "Excluded from Live Unit Testing"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52005404/
这个问题在这里已经有了答案: foreach vs LINQ .ForEach() [duplicate] (1 个回答) 关闭 6 年前。 我正在研究 4 个监视器类/方法(如 async/awa
我是一名优秀的程序员,十分优秀!