Visual studio 2017 将XUnit项目转换为VS2017时的兼容性问题

Visual studio 2017 将XUnit项目转换为VS2017时的兼容性问题,visual-studio-2017,Visual Studio 2017,我想在VS2017中使用XUnit项目 我在VS2017中加载了包含这些项目的解决方案,并将其从Project.json转换为csproj,但我无法运行测试,没有错误: {"Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies

我想在VS2017中使用XUnit项目

我在VS2017中加载了包含这些项目的解决方案,并将其从Project.json转换为csproj,但我无法运行测试,没有错误:

{"Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"}
更新:
我发现将System.Net.Http添加到测试项目解决了这个问题。。我到底为什么要这么做?我的测试项目正在调用一个使用System.Net.Http的DLL,但是为什么测试项目需要它呢