每当我的MSTEST项目在System.Runtime
的{{1}}元素下都有runtime
个绑定时,Test Explorer中的测试发现就会失败。 “输出”窗口中的“测试”输出如下所示:
app.config
[9/28/2017 12:37:17 PM Informational] ------ Discover test started ------
[9/28/2017 12:37:18 PM Warning] The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
[9/28/2017 12:37:18 PM Informational] ========== Discover test finished: 3 found (0:00:00.8953713) ==========
[9/28/2017 12:37:18 PM Informational] No tests found to run.
绑定看起来像这样:
System.Runtime
由于NuGet安装/更新,声明了此绑定。