-
Notifications
You must be signed in to change notification settings - Fork 343
Description
Description
Binding Redirects necessary to run Unit Tests on .NET Framework are not preserved when running in testhost. When MSBuild compiles the test Console Exe project, it generates an app.config with a binding redirect for System.Net.Http. However, that binding redirect is not present when running inside testhost and thus the tests fail with a MissingMethodException because the binding was never redirected.
Steps to reproduce
- Clone https://github.com/anurse/testhost_bindingredirect_issue
- Open "SystemNetHttpIssue.sln" in VS 2017
- Build the Solution
- Ensure
Appis set as the start-up project and run it - Confirm that no error occurs
- Run All Tests
- See error, described below
- Switch to command line and run
dotnet testin the folder containing theTestproject - See error, described below
Expected behavior
Steps 5, 7 and 9 all complete successfully without errors
Actual behavior
During step 7 (running tests from VS), there is an exception while discovering tests (this particular issue may be xunit related and may not be related to the specific problem):
[xUnit.net 00:00:00.5384903] Exception discovering tests from Test: System.BadImageFormatException: Could not load file or assembly 'Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Xunit.Sdk.ReflectionAssemblyInfo..ctor(String assemblyFileName)$$RethrowMarker$$ at ExceptionExtensions.RethrowWithNoStackTraceLoss(Exception ex) in C:\BuildAgent\work\82a56c38c02ce641\src\common\ExceptionExtensions.cs:line 25
at Xunit.AppDomainManager_AppDomain.CreateObject[TObject](AssemblyName assemblyName, String typeName, Object[] args) in C:\BuildAgent\work\82a56c38c02ce641\src\xunit.runner.utility\AppDomain\AppDomainManager_AppDomain.cs:line 82
at Xunit.Xunit2Discoverer..ctor(AppDomainSupport appDomainSupport, ISourceInformationProvider sourceInformationProvider, IAssemblyInfo assemblyInfo, String assemblyFileName, String xunitExecutionAssemblyPath, String configFileName, Boolean shadowCopy, String shadowCopyFolder, IMessageSink diagnosticMessageSink, Boolean verifyAssembliesOnDisk) in C:\BuildAgent\work\82a56c38c02ce641\src\xunit.runner.utility\Frameworks\v2\Xunit2Discoverer.cs:line 98
at Xunit.XunitFrontController.CreateInnerController() in C:\BuildAgent\work\82a56c38c02ce641\src\xunit.runner.utility\Frameworks\XunitFrontController.cs:line 111
at Xunit.XunitFrontController.get_InnerController() in C:\BuildAgent\work\82a56c38c02ce641\src\xunit.runner.utility\Frameworks\XunitFrontController.cs:line 81
at Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner.DiscoverTests[TVisitor](IRunSettings runSettings, IEnumerable`1 sources, LoggerHelper logger, Func`4 visitorFactory, Action`4 visitComplete) in C:\BuildAgent\work\b97dadc0a591f9a\xunit.runner.visualstudio.desktop\VsTestRunner.cs:line 200
During step 9, the test will fail:
Build started, please wait...
Build completed.
Test run for C:\Users\anurse\Code\anurse\testhost_bindingredirect_issue\Test\bin\Debug\net461\Test.dll(.NETFramework,Version=v4.6.1)
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
Failed UnitTest.Main
Error Message:
System.MissingMethodException : Method not found: 'System.Net.Http.HttpClient Microsoft.AspNetCore.TestHost.TestServer.CreateClient()'.
Stack Trace:
at UnitTest.Main()Test Run Failed.
Total tests: 1. Passed: 0. Failed: 1. Skipped: 0.
Test execution time: 3.5745 Seconds
Environment
OS: Windows 10 x64
VS: 2017 build 26126 d15prerel
dotnet --info:
.NET Command Line Tools (1.0.0-rc3-004530)
Product Information:
Version: 1.0.0-rc3-004530
Commit SHA-1 hash: 0de3338607
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15019
OS Platform: Windows
RID: win10-x64
Base Path: C:\Users\anurse\AppData\Local\Microsoft\dotnet\sdk\1.0.0-rc3-004530
App.config file
Below is the app.config file generated when compiling the App project (which works):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.X509Certificates" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.1.0" newVersion="1.2.1.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>Test Host Verbose log (dotnet test --diag)
TpTrace Information: 0 : 290876, 1, 2017/02/01, 12:30:31.202, 1118375145124, testhost.exe, DefaultEngineInvoker: Using Application Configuration: '<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<runtime>
<legacyUnhandledExceptionPolicy enabled="1" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Extensions" />
<!-- Test adapters compiled against version 11-14, need to be redirected to version 15. -->
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.TestPlatform.ObjectModel" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="11.0.0.0-14.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.TestWindow.Interfaces" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="11.0.0.0-14.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.QualityTools.UnitTestFramework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="10.1.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.QualityTools.Resource" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="10.0.0.0-14.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.QualityTools.ControllerObject" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="10.0.0.0-14.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.QualityTools.ExecutionCommon" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="10.0.0.0-14.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.QualityTools.Common" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="10.0.0.0-14.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="1.1.37.0" newVersion="1.2.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.diagnostics>
<switches>
<add name="TpTraceLevel" value="0" />
</switches>
</system.diagnostics>
<appSettings>
<!--<add key="ExecutionThreadApartmentState" value ="MTA"/>-->
<!--<add key="TraceLogMaxFileSizeInKb" value ="10240"/>-->
<!-- MsTest Adapter Specific AppSettings -->
<add key="TestProjectRetargetTo35Allowed" value="true" />
</appSettings>
</configuration>'
TpTrace Information: 0 : 290876, 1, 2017/02/01, 12:30:31.232, 1118375224030, testhost.exe, DefaultEngineInvoker: Monitoring parent process with id: '291712'
TpTrace Information: 0 : 290876, 1, 2017/02/01, 12:30:31.280, 1118375367372, testhost.exe, DefaultEngineInvoker: Initialize communication on port number: '53499'
TpTrace Information: 0 : 290876, 1, 2017/02/01, 12:30:31.282, 1118375374776, testhost.exe, Trying to connect to server on port : 53499
TpTrace Information: 0 : 290876, 6, 2017/02/01, 12:30:31.290, 1118375397689, testhost.exe, Connected to the server successfully
TpTrace Information: 0 : 290876, 1, 2017/02/01, 12:30:31.499, 1118376022123, testhost.exe, DefaultEngineInvoker: Start Request Processing.
TpTrace Information: 0 : 290876, 5, 2017/02/01, 12:30:31.585, 1118376282396, testhost.exe, Discovery Session Initialize.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.617, 1118376375696, testhost.exe, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.617, 1118376378271, testhost.exe, TestPluginCache: Using directories for assembly resolution 'C:\Users\anurse\Code\anurse\testhost_bindingredirect_issue\Test\bin\Debug\net461'.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.618, 1118376378524, testhost.exe, TestPluginCache: Updated the available extensions to 'C:\Users\anurse\Code\anurse\testhost_bindingredirect_issue\Test\bin\Debug\net461\xunit.runner.visualstudio.testadapter.dll'.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.620, 1118376387420, testhost.exe, TestExecutorService: Loading the extensions
TpTrace Information: 0 : 290876, 5, 2017/02/01, 12:30:31.624, 1118376397935, testhost.exe, Execution started.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.626, 1118376404765, testhost.exe, TestPluginCache: Discovering the extensions using extension path.
TpTrace Error: 0 : 290876, 8, 2017/02/01, 12:30:31.627, 1118376406921, testhost.exe, Default extensions folder does not exist
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.634, 1118376428515, testhost.exe, AssemblyResolver: xunit.runner.visualstudio.testadapter: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.647, 1118376466795, testhost.exe, AssemblyResolver: xunit.runner.visualstudio.testadapter: Resolved assembly.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.660, 1118376506913, testhost.exe, TestPluginCache: Discovered the extensions using extension path 'C:\Users\anurse\Code\anurse\testhost_bindingredirect_issue\Test\bin\Debug\net461\xunit.runner.visualstudio.testadapter.dll'.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.662, 1118376512994, testhost.exe, TestPluginCache: Discoverers are 'Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner, xunit.runner.visualstudio.testadapter, Version=2.2.0.1225, Culture=neutral, PublicKeyToken=null'.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.663, 1118376513416, testhost.exe, TestPluginCache: Executors are 'executor://xunit/VsTestRunner2'.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.663, 1118376513678, testhost.exe, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.663, 1118376514073, testhost.exe, TestPluginCache: Loggers are ''.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.700, 1118376624546, testhost.exe, AssemblyResolver: xunit.runner.visualstudio.testadapter, Version=2.2.0.1225, Culture=neutral, PublicKeyToken=null: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.700, 1118376626485, testhost.exe, AssemblyResolver: xunit.runner.visualstudio.testadapter, Version=2.2.0.1225, Culture=neutral, PublicKeyToken=null: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.701, 1118376630006, testhost.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.702, 1118376630711, testhost.exe, TestDiscoveryManager: LoadExtensions: Created discoverer Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.702, 1118376630956, testhost.exe, TestExecutorService: Loaded the discoverers
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.707, 1118376647989, testhost.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.708, 1118376648414, testhost.exe, TestExecutorExtensionManager: Loading executor Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.708, 1118376648593, testhost.exe, TestExecutorService: Loaded the executors
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.711, 1118376658515, testhost.exe, TestExecutorService: Loaded the settings providers
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.711, 1118376658852, testhost.exe, TestExecutorService: Loaded the extensions
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.729, 1118376711635, testhost.exe, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Common.resources, Version=15.0.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.729, 1118376712727, testhost.exe, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Common.resources, Version=15.0.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.746, 1118376764161, testhost.exe, TestDiscoveryManager: Discovering tests from sources C:\Users\anurse\Code\anurse\testhost_bindingredirect_issue\Test\bin\Debug\net461\Test.dll
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:31.755, 1118376790356, testhost.exe, BaseRunTests.RunTestInternalWithExecutors: Running tests for executor://xunit/VsTestRunner2
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.792, 1118376900613, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.793, 1118376904109, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.795, 1118376908956, testhost.exe, AssemblyResolver: Microsoft.Extensions.Logging.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.798, 1118376920624, testhost.exe, AssemblyResolver: Microsoft.Extensions.Logging.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.799, 1118376922098, testhost.exe, AssemblyResolver: Microsoft.Extensions.Logging.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.799, 1118376922430, testhost.exe, AssemblyResolver: Microsoft.Extensions.Logging.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.801, 1118376927202, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.805, 1118376938909, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.805, 1118376940215, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.805, 1118376940473, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.807, 1118376945803, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.810, 1118376956536, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.811, 1118376957781, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.811, 1118376958042, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.812, 1118376962215, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Server.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.815, 1118376970940, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Server.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.820, 1118376984048, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.821, 1118376987489, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.822, 1118376991302, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileProviders.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.825, 1118376999963, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileProviders.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.825, 1118377001028, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileProviders.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.825, 1118377001198, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileProviders.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.826, 1118377002570, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:31.826, 1118377002764, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.719, 1118379678951, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.720, 1118379679366, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.720, 1118379680792, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.720, 1118379681026, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.722, 1118379687154, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.724, 1118379691778, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.731, 1118379715128, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.WebUtilities, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.735, 1118379727114, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.WebUtilities, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.748, 1118379763281, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.748, 1118379763650, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.748, 1118379764837, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.748, 1118379765071, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Features, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.749, 1118379767161, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Server.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.749, 1118379767406, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Server.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.750, 1118379769291, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.751, 1118379773463, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.764, 1118379812176, testhost.exe, AssemblyResolver: Microsoft.Extensions.Configuration.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.766, 1118379817341, testhost.exe, AssemblyResolver: Microsoft.Extensions.Configuration.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.768, 1118379824241, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.768, 1118379824633, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.768, 1118379825898, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.769, 1118379826158, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.774, 1118379842001, testhost.exe, AssemblyResolver: Microsoft.Extensions.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.775, 1118379845625, testhost.exe, AssemblyResolver: Microsoft.Extensions.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.775, 1118379846745, testhost.exe, AssemblyResolver: Microsoft.Extensions.Configuration.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.776, 1118379846948, testhost.exe, AssemblyResolver: Microsoft.Extensions.Configuration.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.780, 1118379860520, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.780, 1118379860771, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.788, 1118379883793, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.788, 1118379884075, testhost.exe, AssemblyResolver: Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.788, 1118379885186, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileProviders.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.788, 1118379885377, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileProviders.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.792, 1118379896465, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileSystemGlobbing, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.796, 1118379907663, testhost.exe, AssemblyResolver: Microsoft.Extensions.FileSystemGlobbing, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.806, 1118379939661, testhost.exe, AssemblyResolver: Microsoft.Extensions.Logging.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.807, 1118379940055, testhost.exe, AssemblyResolver: Microsoft.Extensions.Logging.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.897, 1118380209663, testhost.exe, AssemblyResolver: System.Collections.Immutable, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.951, 1118380373026, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.951, 1118380373319, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Hosting.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.952, 1118380374250, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.952, 1118380374429, testhost.exe, AssemblyResolver: Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.952, 1118380375249, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.952, 1118380375419, testhost.exe, AssemblyResolver: Microsoft.AspNetCore.Http.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.961, 1118380402992, testhost.exe, AssemblyResolver: xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.962, 1118380405840, testhost.exe, AssemblyResolver: xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.966, 1118380416977, testhost.exe, AssemblyResolver: xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.966, 1118380417167, testhost.exe, AssemblyResolver: xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.966, 1118380418247, testhost.exe, AssemblyResolver: xunit.core, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.967, 1118380421011, testhost.exe, AssemblyResolver: xunit.core, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.978, 1118380454457, testhost.exe, AssemblyResolver: xunit.runner.utility.desktop, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.979, 1118380457786, testhost.exe, AssemblyResolver: xunit.runner.utility.desktop, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.980, 1118380458627, testhost.exe, AssemblyResolver: xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:32.980, 1118380458799, testhost.exe, AssemblyResolver: xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved from cache.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:34.527, 1118385091623, testhost.exe, AssemblyResolver: xunit.execution.desktop, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:34.528, 1118385095299, testhost.exe, AssemblyResolver: xunit.execution.desktop, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:34.528, 1118385095708, testhost.exe, AssemblyResolver: xunit.execution.desktop, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolving assembly.
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:34.528, 1118385095879, testhost.exe, AssemblyResolver: xunit.execution.desktop, Version=2.2.0.3474, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c: Resolved from cache.
TpTrace Information: 0 : 290876, 13, 2017/02/01, 12:30:34.674, 1118385530890, testhost.exe, Sending test run statistics
TpTrace Verbose: 0 : 290876, 13, 2017/02/01, 12:30:34.720, 1118385669089, testhost.exe, TestRunCache: OnNewTestResult: Notified the onCacheHit callback.
TpTrace Warning: 0 : 290876, 13, 2017/02/01, 12:30:34.944, 1118386341043, testhost.exe, InProgressTests is null
TpTrace Information: 0 : 290876, 13, 2017/02/01, 12:30:34.948, 1118386353781, testhost.exe, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.ObjectModel.resources, Version=15.0.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a: Resolving assembly.
TpTrace Information: 0 : 290876, 13, 2017/02/01, 12:30:34.949, 1118386354940, testhost.exe, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.ObjectModel.resources, Version=15.0.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a: Resolving assembly.
TpTrace Warning: 0 : 290876, 13, 2017/02/01, 12:30:34.950, 1118386358046, testhost.exe, TestRunCache: No test found corresponding to testResult 'UnitTest.Main Failed
Message: System.MissingMethodException : Method not found: 'System.Net.Http.HttpClient Microsoft.AspNetCore.TestHost.TestServer.CreateClient()'.
StackTrace:
at UnitTest.Main()' in inProgress list.
TpTrace Warning: 0 : 290876, 13, 2017/02/01, 12:30:34.953, 1118386366939, testhost.exe, InProgressTests is null
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:34.998, 1118386501553, testhost.exe, TestExecutionManager.RunTestInternalWithExecutors: Completed running tests for executor://xunit/VsTestRunner2
TpTrace Information: 0 : 290876, 8, 2017/02/01, 12:30:35.001, 1118386512771, testhost.exe, Sending test run complete
TpTrace Verbose: 0 : 290876, 8, 2017/02/01, 12:30:35.021, 1118386572858, testhost.exe, BaseRunTests.RunTests: Run is complete.
TpTrace Information: 0 : 290876, 5, 2017/02/01, 12:30:35.056, 1118386677514, testhost.exe, Session End message received from server. Closing the connection.
TpTrace Information: 0 : 290876, 5, 2017/02/01, 12:30:35.057, 1118386679620, testhost.exe, Closing the connection !
Related issue: aspnet/Hosting#926