File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Adapter/MSTestAdapter.PlatformServices/Services Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ public void SetupHost()
154
154
// which is trigged by AppContainerUtilities.AttachEventToResolveWinmd method.
155
155
EqtTrace . SetupRemoteEqtTraceListeners ( AppDomain ) ;
156
156
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
+
157
163
// Add an assembly resolver in the child app-domain...
158
164
Type assemblyResolverType = typeof ( AssemblyResolver ) ;
159
165
You can’t perform that action at this time.
0 commit comments