Tag: nunit 3.0

如何修复无法加载文件或程序集’nunit.engine,Version = 3.7.0.0

我有一个使用NUnit运行unit testing的单独测试项目的webappliction。 当我的测试项目试图发现测试时,我遇到以下exception: An exception occurred while test discoverer ‘NUnit3TestDiscoverer’ was loading tests. Exception: Could not load file or assembly ‘nunit.engine, Version=3.7.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb’ or one of its dependencies. The system cannot find the file specified. 这当然是一个非常常见的错误,但我无法在任何地方找到对此特定程序集的引用,或者其他依赖项实际导致该问题。 另一件事是我目前安装了3.9.0 NUnit而不是上面提到的3.7.0 。 我已经尝试清理和重建解决方案并恢复所有Nuget包并清除obj目录也没有帮助。