Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.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# VS2017.Net Core 2.0测试:;未能初始化客户端代理:无法连接到测试进程;_C#_Unit Testing_Visual Studio 2017_Xunit_Asp.net Core 2.0 - Fatal编程技术网

C# VS2017.Net Core 2.0测试:;未能初始化客户端代理:无法连接到测试进程;

C# VS2017.Net Core 2.0测试:;未能初始化客户端代理:无法连接到测试进程;,c#,unit-testing,visual-studio-2017,xunit,asp.net-core-2.0,C#,Unit Testing,Visual Studio 2017,Xunit,Asp.net Core 2.0,我无法从控制台、测试资源管理器或Resharper的测试运行程序在我的计算机上运行任何.Net核心测试 我试图通过创建一个超级基本的测试项目将其分解到尽可能低的级别 项目文件: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> <IsPackable>false</

我无法从控制台、测试资源管理器或Resharper的测试运行程序在我的计算机上运行任何.Net核心测试

我试图通过创建一个超级基本的测试项目将其分解到尽可能低的级别

项目文件:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <IsPackable>false</IsPackable>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />
    <PackageReference Include="xunit" Version="2.2.0" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
  </ItemGroup>
</Project>
我从Resharper的测试运行程序得到了一个非决定性的测试结果,而测试浏览器没有显示任何测试。为了进一步分解它,我使用以下命令(作为管理员)运行它:

log.txt文件的输出:

TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:14.965, 3551183221240, vstest.console.dll, Using .Net Framework version:.NETCoreApp,Version=v2.0
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.003, 3551185524706, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.004, 3551185593428, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.TestHostRuntimeProvider: Resolving assembly.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.005, 3551185658770, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.TestHostRuntimeProvider: Resolved assembly. 
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.007, 3551185786618, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Resolving assembly.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.008, 3551185843983, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Resolved assembly. 
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185970715, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185976278, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185980015, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185983444, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185987135, vstest.console.dll, TestPluginCache: Loggers are ''.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.022, 3551186699491, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is starting.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.022, 3551186706606, vstest.console.dll, RunTestsArgumentProcessor:Execute: Queuing Test run.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.022, 3551186729159, vstest.console.dll, TestRequestManager.RunTests: run tests started.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.034, 3551187444225, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to True.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.034, 3551187466435, vstest.console.dll, TestPluginCache: Using directories for assembly resolution 'C:\Program Files\dotnet\sdk\2.0.2\Extensions'.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.034, 3551187471502, vstest.console.dll, TestPluginCache: Updated the available extensions to 'C:\Program Files\dotnet\sdk\2.0.2\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll,C:\Program Files\dotnet\sdk\2.0.2\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll'.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.056, 3551188826402, vstest.console.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.056, 3551188855295, vstest.console.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.057, 3551188899226, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.096, 3551191372397, vstest.console.dll, TestRunRequest.ExecuteAsync: Creating test run request.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.097, 3551191404509, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.097, 3551191419508, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting run with settings:TestRunCriteria:
   KeepAlive=False,FrequencyOfRunStatsChangeEvent=10,RunStatsChangeEventTimeout=00:00:01.5000000,TestCaseFilter=,TestExecutorLauncher=
   Settingsxml=<?xml version="1.0" encoding="utf-16"?><RunSettings><RunConfiguration><ResultsDirectory>D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\TestResults</ResultsDirectory><TargetPlatform>X86</TargetPlatform><TargetFrameworkVersion>.NETCoreApp,Version=v2.0</TargetFrameworkVersion><TestAdaptersPaths>C:\Program Files\dotnet\sdk\2.0.2\Extensions</TestAdaptersPaths></RunConfiguration></RunSettings>

TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.097, 3551191427533, vstest.console.dll, TestRunRequest.ExecuteAsync: Wait for the first run request is over.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.099, 3551191519017, vstest.console.dll, TestRunRequest.ExecuteAsync: Started.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.099, 3551191527717, vstest.console.dll, TestRunRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.099, 3551191555935, vstest.console.dll, ProxyParallelExecutionManager: Triggering test run for next source: D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.dll
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.100, 3551191579325, vstest.console.dll, ProxyExecutionManager: Test host is non shared. Lazy initialize.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.135, 3551193757033, vstest.console.dll, Listening on port : 50705
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.151, 3551194809169, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is C:\Program Files\dotnet\dotnet.exe
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.152, 3551194824010, vstest.console.dll, DotnetTestHostmanager: Adding  --runtimeconfig "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.runtimeconfig.json" in args
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.152, 3551194830856, vstest.console.dll, DotnetTestHostmanager: Adding  --depsfile "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.deps.json" in args
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.152, 3551194841633, vstest.console.dll, AssemblyResolver: Microsoft.Extensions.DependencyModel: Resolving assembly.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.153, 3551194896353, vstest.console.dll, AssemblyResolver: Microsoft.Extensions.DependencyModel: Resolved assembly. 
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.153, 3551194915124, vstest.console.dll, DotnetTestHostmanager: Reading file D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.deps.json to get path of testhost.dll
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.214, 3551198699580, vstest.console.dll, DotnetTestHostmanager: Relative path of testhost.dll with respect to package folder is microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.220, 3551199070691, vstest.console.dll, DotnetTestHostmanager: Looking for path microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll in folder D:\Users\myusername\.dotnet\store\|arch|\|tfm|
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.329, 3551205886619, vstest.console.dll, DotnetTestHostmanager: Looking for path microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll in folder D:\Users\myusername\.nuget\packages
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.329, 3551205902011, vstest.console.dll, DotnetTestHostmanager: Full path of testhost.dll is D:\Users\myusername\.nuget\packages\microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll
TpTrace Verbose: 0 : 8020, 6, 2017/11/10, 09:21:17.200, 3551322870967, vstest.console.dll, DotnetTestHostManager: Starting process 'C:\Program Files\dotnet\dotnet.exe' with command line 'exec --runtimeconfig "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.runtimeconfig.json" --depsfile "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.deps.json" "D:\Users\myusername\.nuget\packages\microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll" --port 50705 --parentprocessid 8020 --diag "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\log.host.17-11-10_09-21-15_14353_4.txt"'
TpTrace Verbose: 0 : 8020, 6, 2017/11/10, 09:21:17.283, 3551328037248, vstest.console.dll, Test Runtime launched with Pid: 2040
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:17.288, 3555078346047, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:17.289, 3555078412364, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Error: 0 : 8020, 4, 2017/11/10, 09:22:17.437, 3555087661572, vstest.console.dll, ProxyExecutionManager.StartTestRun: Failed to start test run: Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process.
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.InitializeExtensions(IEnumerable`1 sources)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler)
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:22:17.660, 3555101595901, vstest.console.dll, TestRunRequest:SendTestRunMessage: Starting.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:17.660, 3555101622579, vstest.console.dll, TestRunRequest:SendTestRunMessage: Completed.
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:22:21.015, 3555311310893, vstest.console.dll, TestRunRequest:TestRunComplete: Starting. IsAborted:False IsCanceled:False.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:21.058, 3555313975900, vstest.console.dll, TestRunRequest:TestRunComplete: Completed.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:22:21.058, 3555314000966, vstest.console.dll, TestRunRequest.Dispose: Starting.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314006561, vstest.console.dll, TestRunRequest.Dispose: Completed.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314011940, vstest.console.dll, TestRequestManager.RunTests: run tests completed, sucessful: True.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314016720, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is completed.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314021368, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
我尝试了以下简单的方法:

  • 重新启动VS
  • 重新启动我的机器
  • 创建NUnit测试,MSTests
  • 以管理员身份运行一切
  • 更新所有库
  • 将库还原为教程中的旧版本
  • 我的.NET4.6.1项目的测试正在成功运行,所以我认为它只是.NETCore
  • 检查windows日志中是否存在异常
如有任何帮助或线索,将不胜感激


注意:我正在amazon工作区工作,因此它可能会以某种方式影响这一点,我还不知道。

尝试从以下位置更改SDK版本:

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />

致:



并将您的.net core更新到最新版本。

您好,谢谢您的回答,我尝试过,昨天甚至将其更新到15.5,但仍然失败。另外一点:这为我解决了问题(升级到更高版本而不是旧版本)。如果无法正常工作,您可能希望将此报告为错误。
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:14.965, 3551183221240, vstest.console.dll, Using .Net Framework version:.NETCoreApp,Version=v2.0
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.003, 3551185524706, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.004, 3551185593428, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.TestHostRuntimeProvider: Resolving assembly.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.005, 3551185658770, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.TestHostRuntimeProvider: Resolved assembly. 
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.007, 3551185786618, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Resolving assembly.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.008, 3551185843983, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Resolved assembly. 
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185970715, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185976278, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185980015, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185983444, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.010, 3551185987135, vstest.console.dll, TestPluginCache: Loggers are ''.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.022, 3551186699491, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is starting.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.022, 3551186706606, vstest.console.dll, RunTestsArgumentProcessor:Execute: Queuing Test run.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.022, 3551186729159, vstest.console.dll, TestRequestManager.RunTests: run tests started.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.034, 3551187444225, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to True.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.034, 3551187466435, vstest.console.dll, TestPluginCache: Using directories for assembly resolution 'C:\Program Files\dotnet\sdk\2.0.2\Extensions'.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.034, 3551187471502, vstest.console.dll, TestPluginCache: Updated the available extensions to 'C:\Program Files\dotnet\sdk\2.0.2\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll,C:\Program Files\dotnet\sdk\2.0.2\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll'.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.056, 3551188826402, vstest.console.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.056, 3551188855295, vstest.console.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.057, 3551188899226, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.096, 3551191372397, vstest.console.dll, TestRunRequest.ExecuteAsync: Creating test run request.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.097, 3551191404509, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.097, 3551191419508, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting run with settings:TestRunCriteria:
   KeepAlive=False,FrequencyOfRunStatsChangeEvent=10,RunStatsChangeEventTimeout=00:00:01.5000000,TestCaseFilter=,TestExecutorLauncher=
   Settingsxml=<?xml version="1.0" encoding="utf-16"?><RunSettings><RunConfiguration><ResultsDirectory>D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\TestResults</ResultsDirectory><TargetPlatform>X86</TargetPlatform><TargetFrameworkVersion>.NETCoreApp,Version=v2.0</TargetFrameworkVersion><TestAdaptersPaths>C:\Program Files\dotnet\sdk\2.0.2\Extensions</TestAdaptersPaths></RunConfiguration></RunSettings>

TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.097, 3551191427533, vstest.console.dll, TestRunRequest.ExecuteAsync: Wait for the first run request is over.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:21:15.099, 3551191519017, vstest.console.dll, TestRunRequest.ExecuteAsync: Started.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:21:15.099, 3551191527717, vstest.console.dll, TestRunRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.099, 3551191555935, vstest.console.dll, ProxyParallelExecutionManager: Triggering test run for next source: D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.dll
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.100, 3551191579325, vstest.console.dll, ProxyExecutionManager: Test host is non shared. Lazy initialize.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.135, 3551193757033, vstest.console.dll, Listening on port : 50705
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.151, 3551194809169, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is C:\Program Files\dotnet\dotnet.exe
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.152, 3551194824010, vstest.console.dll, DotnetTestHostmanager: Adding  --runtimeconfig "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.runtimeconfig.json" in args
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.152, 3551194830856, vstest.console.dll, DotnetTestHostmanager: Adding  --depsfile "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.deps.json" in args
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.152, 3551194841633, vstest.console.dll, AssemblyResolver: Microsoft.Extensions.DependencyModel: Resolving assembly.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:21:15.153, 3551194896353, vstest.console.dll, AssemblyResolver: Microsoft.Extensions.DependencyModel: Resolved assembly. 
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.153, 3551194915124, vstest.console.dll, DotnetTestHostmanager: Reading file D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.deps.json to get path of testhost.dll
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.214, 3551198699580, vstest.console.dll, DotnetTestHostmanager: Relative path of testhost.dll with respect to package folder is microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.220, 3551199070691, vstest.console.dll, DotnetTestHostmanager: Looking for path microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll in folder D:\Users\myusername\.dotnet\store\|arch|\|tfm|
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.329, 3551205886619, vstest.console.dll, DotnetTestHostmanager: Looking for path microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll in folder D:\Users\myusername\.nuget\packages
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:21:15.329, 3551205902011, vstest.console.dll, DotnetTestHostmanager: Full path of testhost.dll is D:\Users\myusername\.nuget\packages\microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll
TpTrace Verbose: 0 : 8020, 6, 2017/11/10, 09:21:17.200, 3551322870967, vstest.console.dll, DotnetTestHostManager: Starting process 'C:\Program Files\dotnet\dotnet.exe' with command line 'exec --runtimeconfig "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.runtimeconfig.json" --depsfile "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\bin\Debug\netcoreapp2.0\XUnitTestProject1.deps.json" "D:\Users\myusername\.nuget\packages\microsoft.testplatform.testhost/15.3.0-preview-20170628-02\lib/netstandard1.5/testhost.dll" --port 50705 --parentprocessid 8020 --diag "D:\Users\myusername\Documents\Visual Studio 2017\Projects\XUnitTestProject1\XUnitTestProject1\log.host.17-11-10_09-21-15_14353_4.txt"'
TpTrace Verbose: 0 : 8020, 6, 2017/11/10, 09:21:17.283, 3551328037248, vstest.console.dll, Test Runtime launched with Pid: 2040
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:17.288, 3555078346047, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:17.289, 3555078412364, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Error: 0 : 8020, 4, 2017/11/10, 09:22:17.437, 3555087661572, vstest.console.dll, ProxyExecutionManager.StartTestRun: Failed to start test run: Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process.
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.InitializeExtensions(IEnumerable`1 sources)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler)
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:22:17.660, 3555101595901, vstest.console.dll, TestRunRequest:SendTestRunMessage: Starting.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:17.660, 3555101622579, vstest.console.dll, TestRunRequest:SendTestRunMessage: Completed.
TpTrace Verbose: 0 : 8020, 4, 2017/11/10, 09:22:21.015, 3555311310893, vstest.console.dll, TestRunRequest:TestRunComplete: Starting. IsAborted:False IsCanceled:False.
TpTrace Information: 0 : 8020, 4, 2017/11/10, 09:22:21.058, 3555313975900, vstest.console.dll, TestRunRequest:TestRunComplete: Completed.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:22:21.058, 3555314000966, vstest.console.dll, TestRunRequest.Dispose: Starting.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314006561, vstest.console.dll, TestRunRequest.Dispose: Completed.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314011940, vstest.console.dll, TestRequestManager.RunTests: run tests completed, sucessful: True.
TpTrace Information: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314016720, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is completed.
TpTrace Verbose: 0 : 8020, 2, 2017/11/10, 09:22:21.059, 3555314021368, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
TpTrace Information: 0 : 2040, 2, 2017/11/10, 09:21:17.796, 3551360175838, testhost.dll, DefaultEngineInvoker: Monitoring parent process with id: '8020'
TpTrace Information: 0 : 2040, 2, 2017/11/10, 09:21:17.904, 3551366851646, testhost.dll, DefaultEngineInvoker: Initialize communication on port number: '50705'
TpTrace Information: 0 : 2040, 2, 2017/11/10, 09:21:17.911, 3551367314294, testhost.dll, Trying to connect to server on port : 50705
TpTrace Information: 0 : 2040, 2, 2017/11/10, 09:21:17.984, 3551371828147, testhost.dll, DefaultEngineInvoker: Start Request Processing.
TpTrace Information: 0 : 2040, 5, 2017/11/10, 09:21:23.051, 3551688508968, testhost.dll, DefaultEngineInvoker: RequestHandler timed out while connecting to the Sender.
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />
 <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />