xunit / visualstudio.xunit

VSTest runner for xUnit.net (for Visual Studio Test Explorer and dotnet test)
https://xunit.net/
Other
144 stars 81 forks source link

Can't run dotnet test against a multi-targeting net8.0/net48 project #406

Closed tbolon closed 5 months ago

tbolon commented 5 months ago

Hi,

I am not sure if this problem is xunit or vstest (or dotnet test) related, but I have trouble running a simple xunit test project using dotnet test on Windows when a test project targets both .NET 4.8 and .NET 8.0.

Steps to reproduce (I also created a simple repo here: https://github.com/tbolon/vstest-lab)

The console output is:

  Determining projects to restore...
  All projects are up-to-date for restore.
  ClassLib1 -> C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll
  ClassLib1 -> C:\code\github\vstest-lab\ClassLib1\bin\Debug\net48\ClassLib1.dll
Test run for C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll (.NETCoreApp,Version=v8.0)
Microsoft (R) Test Execution Command Line Tool Version 17.9.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process for source(s) 'C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll' exited with error: Error:
  An assembly specified in the application dependencies manifest (ClassLib1.deps.json) was not found:
    package: 'xunit.abstractions', version: '2.0.3'
    path: 'lib/netstandard2.0/xunit.abstractions.dll'
. Please check the diagnostic logs for more information.

Test Run Aborted.
Test run for C:\code\github\vstest-lab\ClassLib1\bin\Debug\net48\ClassLib1.dll (.NETFramework,Version=v4.8)
Microsoft (R) Test Execution Command Line Tool Version 17.9.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration:  - ClassLib1.dll (net48)

The interesting error is: An assembly specified in the application dependencies manifest (ClassLib1.deps.json) was not found: package: 'xunit.abstractions', version: '2.0.3' path: 'lib/netstandard2.0/xunit.abstractions.dll'.

Running with -f net48 works. Running with -f net8.0 gives the same error.

Obviously, Adding the xunit.abstractions package does not fix the problem.

When running with the --diag:log.txt I get the following output:

TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.579, 17158393712601, vstest.console.dll, Version: 17.9.0-release-23627-01 Current process architecture: X64
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.582, 17158393738132, vstest.console.dll, Runtime location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.2
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.584, 17158393758551, vstest.console.dll, Using .Net Framework version:.NETCoreApp,Version=v8.0
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.584, 17158393759679, vstest.console.dll, ArtifactProcessingPostProcessModeProcessorExecutor.Initialize: ArtifactProcessingMode.Collect
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.584, 17158393760419, vstest.console.dll, TestSessionCorrelationIdProcessorModeProcessorExecutor.Initialize: TestSessionCorrelationId '34148_3b989f79-6ebd-46ec-88cb-ef1c803d3a33'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.587, 17158393794579, vstest.console.dll, FilePatternParser: The given file C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll is a full path.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.594, 17158393861808, vstest.console.dll, TestPluginCache.DiscoverTestExtensions: finding test extensions in assemblies ends with: RuntimeProvider.dll TPluginInfo: Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.Utilities.TestRuntimePluginInformation TExtension: Microsoft.VisualStudio.TestPlatform.ObjectModel.Host.ITestRuntimeProvider
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.595, 17158393866174, vstest.console.dll, TestPluginCache.GetExtensionPaths: Filtered extension paths:
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.595, 17158393867272, vstest.console.dll, TestPluginCache.GetExtensionPaths: Added default extension paths: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Diagnostics.NETCore.Client.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.EventLogCollector.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.595, 17158393867652, vstest.console.dll, TestPluginCache.GetExtensionPaths: Added unfilterableExtensionPaths:
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.595, 17158393874975, vstest.console.dll, AssemblyResolver.ctor: Creating AssemblyResolver with searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.597, 17158393889413, vstest.console.dll, TestPluginCache.DiscoverTestExtensions: Discovering the extensions using extension path.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.597, 17158393891366, vstest.console.dll, TestPluginCache.GetExtensionPaths: Filtered extension paths:
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.597, 17158393891830, vstest.console.dll, TestPluginCache.GetExtensionPaths: Added default extension paths: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Diagnostics.NETCore.Client.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.EventLogCollector.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.597, 17158393892295, vstest.console.dll, TestPluginCache.GetExtensionPaths: Added unfilterableExtensionPaths:
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.597, 17158393893657, vstest.console.dll, TestPluginCache.DiscoverTestExtensions: Discovering the extensions using allExtensionPaths: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Diagnostics.NETCore.Client.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.EventLogCollector.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger.dll
C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.597, 17158393895270, vstest.console.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.598, 17158393895887, vstest.console.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.598, 17158393896527, vstest.console.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.598, 17158393896849, vstest.console.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.598, 17158393897225, vstest.console.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.598, 17158393897696, vstest.console.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories C:\Program Files\dotnet\sdk\8.0.200\Extensions,C:\Program Files\dotnet\sdk\8.0.200
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.598, 17158393905130, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Diagnostics.NETCore.Client: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.599, 17158393906317, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Diagnostics.NETCore.Client: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.605, 17158393970191, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Diagnostics.NETCore.Client: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Diagnostics.NETCore.Client.dll'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.605, 17158393975242, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.Diagnostics.NETCore.Client, from path: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Diagnostics.NETCore.Client.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.610, 17158394020413, vstest.console.dll, MetadataReaderExtensionsHelper: Discovering extensions inside assembly 'Microsoft.Diagnostics.NETCore.Client, Version=0.2.9.2401, Culture=neutral, PublicKeyToken=31bf3856ad364e35' file path 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Diagnostics.NETCore.Client.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.613, 17158394053447, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.613, 17158394054345, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394055743, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Bcl.AsyncInterfaces.dll', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394056757, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Bcl.AsyncInterfaces.exe', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394057173, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394057964, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Microsoft.Bcl.AsyncInterfaces.dll', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394059125, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Microsoft.Bcl.AsyncInterfaces.exe', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394059580, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Failed to load assembly.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394059963, vstest.console.dll, CurrentDomainAssemblyResolve: Resolving assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394060519, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394060919, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Resolved from cache.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394061222, vstest.console.dll, CurrentDomainAssemblyResolve: Resolving assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.614, 17158394061568, vstest.console.dll, CurrentDomainAssemblyResolve: Failed to resolve assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.615, 17158394068949, vstest.console.dll, CurrentDomainAssemblyResolve: Failed to resolve assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Warning: 0 : 49212, 1, 2024/04/03, 16:26:02.626, 17158394178092, vstest.console.dll, TestPluginDiscoverer: Failed to get types from assembly 'Microsoft.Diagnostics.NETCore.Client, Version=0.2.9.2401, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Error: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.TestPluginDiscoverer.GetTestExtensionsFromAssembly[TPluginInfo,TExtension](Assembly assembly, Dictionary`2 pluginInfos, String filePath) in /_/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginDiscoverer.cs:line 158
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.Bcl.AsyncInterfaces, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.TestPluginCache.CurrentDomainAssemblyResolve(Object sender, AssemblyResolveEventArgs args) in /_/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginCache.cs:line 513
   at System.Runtime.Loader.AssemblyLoadContext.GetFirstResolvedAssemblyFromResolvingEvent(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
TpTrace Warning: 0 : 49212, 1, 2024/04/03, 16:26:02.626, 17158394181705, vstest.console.dll, LoaderExceptions: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.Bcl.AsyncInterfaces, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.TestPluginCache.CurrentDomainAssemblyResolve(Object sender, AssemblyResolveEventArgs args) in /_/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginCache.cs:line 513
   at System.Runtime.Loader.AssemblyLoadContext.GetFirstResolvedAssemblyFromResolvingEvent(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.626, 17158394183003, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.626, 17158394183530, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.627, 17158394186921, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.BlameDataCollector.dll'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.627, 17158394191128, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.TestPlatform.Extensions.BlameDataCollector, from path: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.627, 17158394192146, vstest.console.dll, MetadataReaderExtensionsHelper: Discovering extensions inside assembly 'Microsoft.TestPlatform.Extensions.BlameDataCollector, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' file path 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.BlameDataCollector.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.628, 17158394203798, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.628, 17158394204482, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.629, 17158394206961, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.EventLogCollector.dll'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.629, 17158394210842, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.TestPlatform.Extensions.EventLogCollector, from path: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.EventLogCollector.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.629, 17158394211565, vstest.console.dll, MetadataReaderExtensionsHelper: Discovering extensions inside assembly 'Microsoft.TestPlatform.Extensions.EventLogCollector, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' file path 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.Extensions.EventLogCollector.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.631, 17158394233816, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.TestHostRuntimeProvider: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.631, 17158394234599, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.TestHostRuntimeProvider: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.632, 17158394237223, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.TestHostRuntimeProvider: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.632, 17158394241134, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.TestPlatform.TestHostRuntimeProvider, from path: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.632, 17158394241914, vstest.console.dll, MetadataReaderExtensionsHelper: Discovering extensions inside assembly 'Microsoft.TestPlatform.TestHostRuntimeProvider, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' file path 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.633, 17158394254207, vstest.console.dll, GetTestExtensionFromType: Register extension with identifier data 'HostProvider://DefaultTestHost' and type 'Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager, Microsoft.TestPlatform.TestHostRuntimeProvider, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' inside file 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.634, 17158394256277, vstest.console.dll, GetTestExtensionFromType: Register extension with identifier data 'HostProvider://DotnetTestHost' and type 'Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager, Microsoft.TestPlatform.TestHostRuntimeProvider, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' inside file 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.TestPlatform.TestHostRuntimeProvider.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.634, 17158394256972, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.634, 17158394257415, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.634, 17158394261845, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger.dll'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.635, 17158394266196, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger, from path: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.635, 17158394267070, vstest.console.dll, MetadataReaderExtensionsHelper: Discovering extensions inside assembly 'Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' file path 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.635, 17158394274611, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.636, 17158394275433, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.636, 17158394278061, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.636, 17158394282355, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger, from path: C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.636, 17158394283227, vstest.console.dll, MetadataReaderExtensionsHelper: Discovering extensions inside assembly 'Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' file path 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.dll'
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394291931, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394292553, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394292874, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394293160, vstest.console.dll, TestPluginCache: Executors2 are ''.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394293436, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394293709, vstest.console.dll, TestPluginCache: Loggers are ''.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.637, 17158394295169, vstest.console.dll, TestPluginCache: TestHosts are 'HostProvider://DefaultTestHost,HostProvider://DotnetTestHost'.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.638, 17158394295627, vstest.console.dll, TestPluginCache: DataCollectors are ''.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.650, 17158394425370, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is starting.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.651, 17158394426710, vstest.console.dll, RunTestsArgumentProcessor:Execute: Queuing Test run.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.651, 17158394430083, vstest.console.dll, TestRequestManager.RunTests: run tests started.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.652, 17158394441895, vstest.console.dll, AssemblyMetadataProvider.GetFrameworkName: Determined framework:'.NETCoreApp,Version=v8.0' for source: 'C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll'
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.652, 17158394443060, vstest.console.dll, Determined framework for all sources: .NETCoreApp,Version=v8.0
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.652, 17158394445273, vstest.console.dll, TestRequestManager.UpdateRunSettingsIfRequired: Default architecture: X64 IsDefaultTargetArchitecture: True, Current process architecture: X64 OperatingSystem: Windows.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.654, 17158394459725, vstest.console.dll, AssemblyMetadataProvider.GetArchitecture: Determined architecture:AnyCPU info for assembly: C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.654, 17158394460820, vstest.console.dll, Determined platform for source 'C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll' was AnyCPU and it will use the default plaform X64.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.654, 17158394461163, vstest.console.dll, None of the sources provided any runnable platform, using the default platform: X64
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.654, 17158394462428, vstest.console.dll, Platform was updated to 'X64'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.656, 17158394477315, vstest.console.dll, Compatible sources list:
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.656, 17158394478028, vstest.console.dll, C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.658, 17158394503796, vstest.console.dll, InferRunSettingsHelper.IsTestSettingsEnabled: Unable to navigate to RunSettings/MSTest. Current node: RunSettings
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394516174, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Resolving assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394517308, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394518742, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Fakes.dll', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394519819, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.VisualStudio.TestPlatform.Fakes.exe', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394520255, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200'.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394521117, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Microsoft.VisualStudio.TestPlatform.Fakes.dll', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394522021, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Microsoft.VisualStudio.TestPlatform.Fakes.exe', returning.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.660, 17158394522542, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TestPlatform.Fakes: Failed to load assembly.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.661, 17158394525663, vstest.console.dll, Failed to load assembly Microsoft.VisualStudio.TestPlatform.Fakes, Version=17.0.0.0, Culture=neutral. Reason:System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.Fakes, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.TestPlatform.Fakes, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Microsoft.VisualStudio.TestPlatform.Common.Utilities.FakesUtilities.LoadTestPlatformAssembly() in /_/src/Microsoft.TestPlatform.Common/Utilities/FakesUtilities.cs:line 272
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.670, 17158394625208, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.671, 17158394635112, vstest.console.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.672, 17158394642562, vstest.console.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.673, 17158394646686, vstest.console.dll, InferRunSettingsHelper.IsTestSettingsEnabled: Unable to navigate to RunSettings/MSTest. Current node: RunSettings
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.673, 17158394652434, vstest.console.dll, ParallelOperationManager.ClearSlots: Clearing all slots. Slots should accept more work: True
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.674, 17158394657403, vstest.console.dll, ParallelOperationManager.SetOccupiedSlotCount: Setting slot counts AvailableSlotCount = 3, OccupiedSlotCount = 0.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.674, 17158394660231, vstest.console.dll, Occupied slots:

TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.678, 17158394697601, vstest.console.dll, TestEngine.GetExecutionManager: Chosen execution manager 'Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.Parallel.ParallelProxyExecutionManager, Microsoft.TestPlatform.CrossPlatEngine, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ParallelLevel '1'.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.678, 17158394700063, vstest.console.dll, TestRunRequest.ExecuteAsync: Creating test run request.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.678, 17158394703969, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.679, 17158394713842, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting run with settings:TestRunCriteria:
   KeepAlive=False,FrequencyOfRunStatsChangeEvent=10,RunStatsChangeEventTimeout=00:00:01.5000000,TestCaseFilter=,TestExecutorLauncher=
   Settingsxml=<RunSettings>
  <RunConfiguration>
    <ResultsDirectory>C:\code\github\vstest-lab\ClassLib1\TestResults</ResultsDirectory>
    <TargetPlatform>X64</TargetPlatform>
    <TargetFrameworkVersion>.NETCoreApp,Version=v8.0</TargetFrameworkVersion>
    <DesignMode>False</DesignMode>
    <CollectSourceInformation>False</CollectSourceInformation>
  </RunConfiguration>
  <LoggerRunSettings>
    <Loggers>
      <Logger friendlyName="Console" assemblyQualifiedName="Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger, vstest.console, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" codeBase="C:\Program Files\dotnet\sdk\8.0.200\vstest.console.dll" enabled="True">
        <Configuration>
          <Verbosity>minimal</Verbosity>
        </Configuration>
      </Logger>
    </Loggers>
  </LoggerRunSettings>
</RunSettings>

TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.679, 17158394715111, vstest.console.dll, TestRunRequest.ExecuteAsync: Wait for the first run request is over.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.680, 17158394719781, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: TestRun.TestRunStart: Invoking callbacks was skipped because there are no subscribers.
TpTrace Verbose: 0 : 49212, 4, 2024/04/03, 16:26:02.680, 17158394724465, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: InternalTestLoggerEvents.SendTestRunStart: Invoking callback 1/1 for Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger., took 0 ms.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.681, 17158394729595, vstest.console.dll, ParallelProxyExecutionManager: Start execution. Total sources: 1
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.681, 17158394732312, vstest.console.dll, ParallelOperationManager.StartWork: Starting adding 1 workloads.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.681, 17158394732934, vstest.console.dll, ParallelOperationManager.ClearSlots: Clearing all slots. Slots should accept more work: True
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.681, 17158394733561, vstest.console.dll, ParallelOperationManager.SetOccupiedSlotCount: Setting slot counts AvailableSlotCount = 3, OccupiedSlotCount = 0.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.681, 17158394733971, vstest.console.dll, Occupied slots:

TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.683, 17158394751156, vstest.console.dll, TestRequestSender is acting as server.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.683, 17158394754193, vstest.console.dll, ParallelOperationManager.RunWorkInParallel: Adding 1 workload to slot, remaining workloads 0.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.683, 17158394754744, vstest.console.dll, ParallelOperationManager.SetOccupiedSlotCount: Setting slot counts AvailableSlotCount = 2, OccupiedSlotCount = 1.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.684, 17158394755737, vstest.console.dll, Occupied slots:
0: C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.685, 17158394765937, vstest.console.dll, ParallelOperationManager.RunWorkInParallel: Started host in slot number 0 for work (source): C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.685, 17158394773979, vstest.console.dll, ParallelOperationManager.RunWorkInParallel: We started 1 work items, which is the max parallel level. Won't start more work.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.685, 17158394774570, vstest.console.dll, ParallelOperationManager.RunWorkInParallel: We started 1 work items in here, returning True.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.685, 17158394775095, vstest.console.dll, TestRunRequest.ExecuteAsync: Started.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.686, 17158394775974, vstest.console.dll, ParallelProxyExecutionManager.StartTestRunOnConcurrentManager: Initializing uninitialized client. Started clients: 0
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.686, 17158394776842, vstest.console.dll, ParallelProxyExecutionManager.StartTestRunOnConcurrentManager: Initializing test run. Started clients: 0
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.686, 17158394777721, vstest.console.dll, ProxyExecutionManager: Test host is always Lazy initialize.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.686, 17158394779594, vstest.console.dll, TestRequestSender.InitializeCommunication: initialize communication.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.686, 17158394779940, vstest.console.dll, TestRunRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.694, 17158394861867, vstest.console.dll, SocketServer.Start: Listening on endpoint : 127.0.0.1:56954
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.698, 17158394904924, vstest.console.dll, DotnetTestHostmanager.GetTestHostProcessStartInfo: Platform environment 'X64' target architecture 'X64' framework '.NETCoreApp,Version=v8.0' OS 'Windows'
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394908297, vstest.console.dll, DotnetTestHostmanager: Adding  --runtimeconfig "C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.runtimeconfig.json" in args
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394909974, vstest.console.dll, DotnetTestHostmanager: Adding  --depsfile "C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.deps.json" in args
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394911487, vstest.console.dll, DotnetTestHostmanager.IsWinOnArm: Current PROCESSOR_ARCHITECTURE from environment variable 'AMD64'
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394912053, vstest.console.dll, DotnetTestHostmanager.IsWinOnArm: Is Windows on ARM 'False'
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394913572, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyModel: Resolving assembly.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394914182, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyModel: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions'.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.699, 17158394915026, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyModel: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Extensions.DependencyModel.dll', returning.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.700, 17158394916661, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyModel: Assembly path does not exist: 'C:\Program Files\dotnet\sdk\8.0.200\Extensions\Microsoft.Extensions.DependencyModel.exe', returning.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.700, 17158394917280, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyModel: Searching in: 'C:\Program Files\dotnet\sdk\8.0.200'.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.700, 17158394923706, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyModel: Loading assembly 'C:\Program Files\dotnet\sdk\8.0.200\Microsoft.Extensions.DependencyModel.dll'.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.701, 17158394929664, vstest.console.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.Extensions.DependencyModel, from path: C:\Program Files\dotnet\sdk\8.0.200\Microsoft.Extensions.DependencyModel.dll
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394935363, vstest.console.dll, DotnetTestHostmanager: Runtimeconfig.dev.json C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.runtimeconfig.dev.json does not exist.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394937484, vstest.console.dll, DotnetTestHostmanager: Runtimeconfig.dev.json C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.runtimeconfig.dev.json does not exist.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394939165, vstest.console.dll, DotnetTestHostManager: Found testhost.dll next to runner executable: C:\Program Files\dotnet\sdk\8.0.200\testhost.dll.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394939699, vstest.console.dll, DotnetTestHostmanager: Adding  --additional-deps "C:\Program Files\dotnet\sdk\8.0.200\testhost.deps.json" in args
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394940008, vstest.console.dll, DotnetTestHostmanager: Adding  --additionalprobingpath "C:\Program Files\dotnet\sdk\8.0.200" in args
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394940862, vstest.console.dll, DotnetTestHostmanager: Current process architetcure 'X64'
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394943894, vstest.console.dll, DotnetTestHostmanager.LaunchTestHostAsync: Compatible muxer architecture of running process 'X64' and target architecture 'X64'
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394944351, vstest.console.dll, DotnetTestHostmanager: Full path of testhost.dll is C:\Program Files\dotnet\sdk\8.0.200\testhost.dll
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.702, 17158394944678, vstest.console.dll, DotnetTestHostmanager: Full path of host exe is C:\Program Files\dotnet\dotnet.exe
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.703, 17158394946704, vstest.console.dll, DotnetTestHostManager: Starting process 'C:\Program Files\dotnet\dotnet.exe' with command line 'exec --runtimeconfig "C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.runtimeconfig.json" --depsfile "C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.deps.json" --additional-deps "C:\Program Files\dotnet\sdk\8.0.200\testhost.deps.json" --additionalprobingpath "C:\Program Files\dotnet\sdk\8.0.200" "C:\Program Files\dotnet\sdk\8.0.200\testhost.dll" --port 56954 --endpoint 127.0.0.1:056954 --role client --parentprocessid 49212 --diag "C:\code\github\vstest-lab\ClassLib1\log.host.24-04-03_16-26-02_69853_5.txt" --tracelevel 4 --telemetryoptedin false'
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.708, 17158395002241, vstest.console.dll, Test Runtime launched
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.709, 17158395006916, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: HostProviderEvents.OnHostLaunched: Invoking callback 1/1 for Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager., took 0 ms.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.709, 17158395013813, vstest.console.dll, TestRequestSender.WaitForRequestHandlerConnection: waiting for connection with timeout: 90000.
TpTrace Verbose: 0 : 49212, 10, 2024/04/03, 16:26:02.738, 17158395301743, vstest.console.dll, TestHostManagerCallbacks.ctor: Experimental forwarding output is disabled.
TpTrace Warning: 0 : 49212, 10, 2024/04/03, 16:26:02.738, 17158395303339, vstest.console.dll, TestHostManagerCallbacks.ErrorReceivedCallback Test host standard error line: Error:
TpTrace Verbose: 0 : 49212, 10, 2024/04/03, 16:26:02.738, 17158395304041, vstest.console.dll, TestHostManagerCallbacks.ctor: Experimental forwarding output is disabled.
TpTrace Warning: 0 : 49212, 10, 2024/04/03, 16:26:02.738, 17158395304751, vstest.console.dll, TestHostManagerCallbacks.ErrorReceivedCallback Test host standard error line:   An assembly specified in the application dependencies manifest (ClassLib1.deps.json) was not found:
TpTrace Verbose: 0 : 49212, 10, 2024/04/03, 16:26:02.738, 17158395305093, vstest.console.dll, TestHostManagerCallbacks.ctor: Experimental forwarding output is disabled.
TpTrace Warning: 0 : 49212, 10, 2024/04/03, 16:26:02.739, 17158395305634, vstest.console.dll, TestHostManagerCallbacks.ErrorReceivedCallback Test host standard error line:     package: 'xunit.abstractions', version: '2.0.3'
TpTrace Verbose: 0 : 49212, 7, 2024/04/03, 16:26:02.739, 17158395307818, vstest.console.dll, TestHostManagerCallbacks.ctor: Experimental forwarding output is disabled.
TpTrace Warning: 0 : 49212, 7, 2024/04/03, 16:26:02.739, 17158395308590, vstest.console.dll, TestHostManagerCallbacks.ErrorReceivedCallback Test host standard error line:     path: 'lib/netstandard2.0/xunit.abstractions.dll'
TpTrace Verbose: 0 : 49212, 7, 2024/04/03, 16:26:02.739, 17158395311856, vstest.console.dll, TestHostManagerCallbacks.ctor: Experimental forwarding output is disabled.
TpTrace Warning: 0 : 49212, 7, 2024/04/03, 16:26:02.739, 17158395313366, vstest.console.dll, TestHostManagerCallbacks.ErrorReceivedCallback Test host standard error line:
TpTrace Verbose: 0 : 49212, 7, 2024/04/03, 16:26:02.741, 17158395331020, vstest.console.dll, TestHostProvider.ExitCallBack: Host exited starting callback.
TpTrace Error: 0 : 49212, 7, 2024/04/03, 16:26:02.741, 17158395332303, vstest.console.dll, TestHostManagerCallbacks.ExitCallBack: Testhost processId: 28768 exited with exitcode: -2147450740 error: 'Error:
  An assembly specified in the application dependencies manifest (ClassLib1.deps.json) was not found:
    package: 'xunit.abstractions', version: '2.0.3'
    path: 'lib/netstandard2.0/xunit.abstractions.dll'
'
TpTrace Verbose: 0 : 49212, 7, 2024/04/03, 16:26:02.741, 17158395332765, vstest.console.dll, DotnetTestHostManager.OnHostExited: invoking OnHostExited callback
TpTrace Verbose: 0 : 49212, 7, 2024/04/03, 16:26:02.741, 17158395334681, vstest.console.dll, CrossPlatEngine.TestHostManagerHostExited: calling on client process exit callback.
TpTrace Information: 0 : 49212, 7, 2024/04/03, 16:26:02.741, 17158395335345, vstest.console.dll, TestRequestSender.OnClientProcessExit: Test host process exited. Standard error: Error:
  An assembly specified in the application dependencies manifest (ClassLib1.deps.json) was not found:
    package: 'xunit.abstractions', version: '2.0.3'
    path: 'lib/netstandard2.0/xunit.abstractions.dll'

TpTrace Information: 0 : 49212, 7, 2024/04/03, 16:26:02.742, 17158395335828, vstest.console.dll, SocketServer.Stop: Stop server endPoint: 127.0.0.1:56954
TpTrace Information: 0 : 49212, 7, 2024/04/03, 16:26:02.742, 17158395336200, vstest.console.dll, SocketServer.Stop: Cancellation requested. Stopping message loop.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.742, 17158395336440, vstest.console.dll, TestRequestSender.WaitForRequestHandlerConnection: waiting took 32 ms, with timeout 90000 ms, and result 2, which is failure.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.742, 17158395337734, vstest.console.dll, Test host failed to start Test host launched:True test host exited: True
TpTrace Verbose: 0 : 49212, 7, 2024/04/03, 16:26:02.742, 17158395338889, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: HostProviderEvents.OnHostExited: Invoking callback 1/1 for Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager., took 0 ms.
TpTrace Error: 0 : 49212, 5, 2024/04/03, 16:26:02.743, 17158395353394, vstest.console.dll, ProxyExecutionManager.StartTestRun: Failed to start test run: Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Testhost process for source(s) 'C:\code\github\vstest-lab\ClassLib1\bin\Debug\net8.0\ClassLib1.dll' exited with error: Error:
  An assembly specified in the application dependencies manifest (ClassLib1.deps.json) was not found:
    package: 'xunit.abstractions', version: '2.0.3'
    path: 'lib/netstandard2.0/xunit.abstractions.dll'
. Please check the diagnostic logs for more information.
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.ThrowOnTestHostExited(IEnumerable`1 sources, Boolean testHostExited) in /_/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyOperationManager.cs:line 520
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, String runSettings) in /_/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyOperationManager.cs:line 290
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.InitializeTestRun(TestRunCriteria testRunCriteria, IInternalTestRunEventsHandler eventHandler) in /_/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyExecutionManager.cs:line 182
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.779, 17158395710017, vstest.console.dll, TestRunRequest:SendTestRunMessage: Starting.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.779, 17158395712796, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: TestRun.LogMessages: Invoking callback 1/1 for Microsoft.VisualStudio.TestPlatform.CommandLine.TestRunResultAggregator., took 0 ms.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.779, 17158395714346, vstest.console.dll, TestRunRequest:SendTestRunMessage: Completed.
TpTrace Verbose: 0 : 49212, 4, 2024/04/03, 16:26:02.781, 17158395727183, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: InternalTestLoggerEvents.SendTestRunMessage: Invoking callback 1/1 for Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger., took 1 ms.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.788, 17158395804115, vstest.console.dll, TestRequestSender.EndSession: Sending end session.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.788, 17158395805100, vstest.console.dll, ProxyOperationManager.Close: waiting for test host to exit for 100 ms
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395805666, vstest.console.dll, SocketServer.Stop: Stop server endPoint: 127.0.0.1:56954
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395805996, vstest.console.dll, SocketServer.Stop: Cancellation requested. Stopping message loop.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395806463, vstest.console.dll, Closing the connection
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395808188, vstest.console.dll, ParallelRunEventsHandler.HandleTestRunComplete: Handling a run completion, this can be either one part of parallel run completing, or the whole parallel run completing.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395811401, vstest.console.dll, ParallelProxyExecutionManager: HandlePartialRunComplete: Total workloads = 1, Total started clients = 1 Total completed clients = 1, Run complete = True, Run canceled: False.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395811856, vstest.console.dll, ParallelProxyExecutionManager: HandlePartialRunComplete: All runs completed stopping all managers.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395812238, vstest.console.dll, ParallelOperationManager.StopAllManagers: Stopping all managers.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395813003, vstest.console.dll, ParallelOperationManager.ClearSlots: Clearing all slots. Slots should accept more work: False
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395813421, vstest.console.dll, ParallelOperationManager.SetOccupiedSlotCount: Setting slot counts AvailableSlotCount = 3, OccupiedSlotCount = 0.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395813782, vstest.console.dll, Occupied slots:

TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.789, 17158395814077, vstest.console.dll, ParallelRunEventsHandler.HandleTestRunComplete: Whole parallel run completed.
TpTrace Verbose: 0 : 49212, 4, 2024/04/03, 16:26:02.813, 17158396054444, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: InternalTestLoggerEvents.SendTestRunComplete: Invoking callback 1/1 for Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger., took 4 ms.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.814, 17158396058124, vstest.console.dll, TestRunRequest:TestRunComplete: Starting. IsAborted:True IsCanceled:False.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.814, 17158396059636, vstest.console.dll, ParallelOperationManager.DoActionOnAllManagers: Calling an action on all managers.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396065520, vstest.console.dll, TestLoggerManager.HandleTestRunComplete: Ignoring as the object is disposed.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396067502, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: TestRun.TestRunComplete: Invoking callback 1/2 for Microsoft.VisualStudio.TestPlatform.CommandLine.TestRunResultAggregator., took 0 ms.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396068466, vstest.console.dll, MulticastDelegateUtilities.SafeInvoke: TestRun.TestRunComplete: Invoking callback 2/2 for Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor+TestRunRequestEventsRegistrar., took 0 ms.
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396069365, vstest.console.dll, TestRunRequest:TestRunComplete: Completed.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396069857, vstest.console.dll, ParallelProxyExecutionManager.StartTestRunOnConcurrentManager: Execution starting. Started clients: 1
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.815, 17158396069794, vstest.console.dll, TestRunRequest.Dispose: Starting.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396070717, vstest.console.dll, ProxyExecutionManager: Test host is always Lazy initialize.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.815, 17158396070860, vstest.console.dll, TestRunRequest.Dispose: Completed.
TpTrace Verbose: 0 : 49212, 5, 2024/04/03, 16:26:02.815, 17158396071423, vstest.console.dll, TestRequestSender.InitializeCommunication: initialize communication.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.815, 17158396071831, vstest.console.dll, TestRequestManager.RunTests: run tests completed.
TpTrace Information: 0 : 49212, 1, 2024/04/03, 16:26:02.815, 17158396072980, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is completed.
TpTrace Verbose: 0 : 49212, 1, 2024/04/03, 16:26:02.815, 17158396074362, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
TpTrace Information: 0 : 49212, 5, 2024/04/03, 16:26:02.816, 17158396075834, vstest.console.dll, SocketServer.Start: Listening on endpoint : 127.0.0.1:56955
tbolon commented 5 months ago

I tend to think that xunit is not at fault here, and that this issue should be reported on the vstest repo. I will let you confirm this.

tbolon commented 5 months ago

Ok my bad, it was simply missing the Microsoft.NET.Test.Sdk package.