xUnit 跳过测试并显示“无法找到依赖程序集”警告

Cad*_*son 7 c# xunit visual-studio

更新程序集后,我的 xUnit 测试无法运行。

我的项目使用的是System.Web.Http5.2.3版本。我使用 Nuget 将其替换为版本 5.2.4 的分支System.Web.Http。检查引用显示新 DLL 的正确路径。

当我运行 xUnit 时,它会发现测试,但会给出以下警告:

[11/04/2018 10:43:30 AM Warning] [xUnit.net 00:00:00.9421698] Skipping: API.IntegrationTests (could not find dependent assembly 'System.Web.Http, Version=5.2.4')
Run Code Online (Sandbox Code Playgroud)

然后它会跳过所有测试。

我不知所措。非常感谢任何帮助。