【问题标题】:Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter' or one of its dependencies. The system cannot find the file无法加载文件或程序集“Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter”或其依赖项之一。系统找不到文件
【发布时间】:2021-10-19 17:06:57
【问题描述】:

请注意,我正在学习本课程,目前正在学习模块 5:https://www.pluralsight.com/courses/wcf-end-to-end

问题是我正在尝试运行单元测试,但每次我都收到上述错误。这是完整的堆栈跟踪:

https://pastebin.com/aQHeeUyp

我可以让它与NUnit 一起工作,但如果我将项目切换到MsTest,则会出现上述错误。请注意,我研究了以下各种帖子,但尚未解决错误:

VS2017 Could not load file or assembly Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll or one of its dependencies

Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=11.0.0.0'

https://social.msdn.microsoft.com/Forums/SECURITY/en-US/4c69c666-85ca-4d1c-b3ad-ff564578743d/unit-tests-are-not-running-not-seeing-existing-unit-tests-added-new-unit-test-project-empty?forum=vsunittest

https://social.msdn.microsoft.com/Forums/vstudio/en-US/d44322f6-9850-4c3f-8696-921d3bc9db85/could-not-load-file-or-assembly-microsoftvisualstudioqualitytoolsunittestframework?forum=vsunittest

这里是完整的源代码:

https://github.com/john1726/WcfEndToEnd.git

有人有什么建议吗?

【问题讨论】:

    标签: c# .net visual-studio-2010 mstest


    【解决方案1】:

    微软似乎为他们的单元测试框架更改了一些程序集/命名空间,并以某种方式破坏了某些东西,或者ReSharper 可能存在问题,所以我最终坚持使用NUnit

    【讨论】:

      猜你喜欢
      • 2011-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-10
      • 2020-01-21
      相关资源
      最近更新 更多