File tree Expand file tree Collapse file tree
src/Adapter/MSTestAdapter.PlatformServices/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ public void SetupHost()
154154 // which is trigged by AppContainerUtilities.AttachEventToResolveWinmd method.
155155 EqtTrace . SetupRemoteEqtTraceListeners ( AppDomain ) ;
156156
157+ // Force loading Microsoft.TestPlatform.CoreUtilities in the new app domain to ensure there is no assembly resolution issue.
158+ // For unknown reasons, with MSTest 3.4+ we start to see infinite cycles of assembly resolution of this dll in the new app
159+ // domain. In older versions, this was not the case, and the callback was allowing to fully lookup and load the dll before
160+ // triggering the next resolution.
161+ AppDomain . Load ( typeof ( EqtTrace ) . Assembly . GetName ( ) ) ;
162+
157163 // Add an assembly resolver in the child app-domain...
158164 Type assemblyResolverType = typeof ( AssemblyResolver ) ;
159165
You can’t perform that action at this time.
0 commit comments