Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/256.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# xUnit使用“跳过测试”;找不到依赖程序集“;警告_C#_Visual Studio_Xunit - Fatal编程技术网

C# xUnit使用“跳过测试”;找不到依赖程序集“;警告

C# xUnit使用“跳过测试”;找不到依赖程序集“;警告,c#,visual-studio,xunit,C#,Visual Studio,Xunit,更新程序集后,我的xUnit测试无法运行 我的项目使用的是System.Web.Http5.2.3版。我用System.Web.HttpVersion5.2.4的分支替换了Nuget。检查引用将显示新DLL的正确路径 当我运行xUnit时,它会发现测试,但会给我以下警告: [11/04/2018 10:43:30 AM Warning] [xUnit.net 00:00:00.9421698] Skipping: API.IntegrationTests (could not find depe

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

我的项目使用的是
System.Web.Http
5.2.3版。我用
System.Web.Http
Version5.2.4的分支替换了Nuget。检查引用将显示新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')
然后它跳过所有测试

我不知所措。非常感谢您的帮助