<test name="System.Tests.AppDomainTests.TestingCreateInstanceFromObjectHandle(physicalFileName: \"AssemblyResolveTestApp.dll\", assemblyFile: \"assemblyresolvetestapp.dll\", type: \"assemblyresolvetestapp.publicclasssample\", returnedFullNameType: \"AssemblyResolveTestApp.PublicClassSample\", exceptionType: typeof(System.TypeLoadException))" type="System.Tests.AppDomainTests" method="TestingCreateInstanceFromObjectHandle" time="0.0031391" result="Fail">
<failure exception-type="Xunit.Sdk.ThrowsException">
<message><![CDATA[Assert.Throws() Failure\nExpected: typeof(System.TypeLoadException)\nActual: typeof(System.IO.FileNotFoundException): Could not load file or assembly '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/4EB47718-1F6F-44CD-A084-9A74506B1784/data/Containers/Bundle/Application/0B1FEE04-BA5E-4B90-8785-8982D00AB2C6/System.Runtime.Extensions.Tests.app/assemblyresolvetestapp.dll' or one of its dependencies.\n---- System.IO.FileNotFoundException : Could not load file or assembly '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/4EB47718-1F6F-44CD-A084-9A74506B1784/data/Containers/Bundle/Application/0B1FEE04-BA5E-4B90-8785-8982D00AB2C6/System.Runtime.Extensions.Tests.app/assemblyresolvetestapp.dll' or one of its dependencies.]]></message>
<stack-trace><![CDATA[ at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.Tests.AppDomainTests.<>c__DisplayClass57_0.<TestingCreateInstanceFromObjectHandle>b__0()
----- Inner Stack Trace -----
at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.Tests.AppDomainTests.<>c__DisplayClass57_0.<TestingCreateInstanceFromObjectHandle>b__0()]]></stack-trace>
</failure>
</test>
<test name="System.Tests.AppDomainTests.TestingCreateInstanceFromObjectHandle(physicalFileName: \"AssemblyResolveTestApp.dll\", assemblyFile: \"assemblyresolvetestapp.dll\", type: \"assemblyresolvetestapp.privateclasssample\", returnedFullNameType: \"AssemblyResolveTestApp.PrivateClassSample\", exceptionType: typeof(System.TypeLoadException))" type="System.Tests.AppDomainTests" method="TestingCreateInstanceFromObjectHandle" time="0.0008671" result="Fail">
<failure exception-type="Xunit.Sdk.ThrowsException">
<message><![CDATA[Assert.Throws() Failure\nExpected: typeof(System.TypeLoadException)\nActual: typeof(System.IO.FileNotFoundException): Could not load file or assembly '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/4EB47718-1F6F-44CD-A084-9A74506B1784/data/Containers/Bundle/Application/0B1FEE04-BA5E-4B90-8785-8982D00AB2C6/System.Runtime.Extensions.Tests.app/assemblyresolvetestapp.dll' or one of its dependencies.\n---- System.IO.FileNotFoundException : Could not load file or assembly '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/4EB47718-1F6F-44CD-A084-9A74506B1784/data/Containers/Bundle/Application/0B1FEE04-BA5E-4B90-8785-8982D00AB2C6/System.Runtime.Extensions.Tests.app/assemblyresolvetestapp.dll' or one of its dependencies.]]></message>
<stack-trace><![CDATA[ at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.Tests.AppDomainTests.<>c__DisplayClass57_0.<TestingCreateInstanceFromObjectHandle>b__0()
----- Inner Stack Trace -----
at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.Tests.AppDomainTests.<>c__DisplayClass57_0.<TestingCreateInstanceFromObjectHandle>b__0()]]></stack-trace>
</failure>
</test>
<test name="System.Tests.AppDomainTests.TestingCreateInstanceFromObjectHandle(physicalFileName: \"AssemblyResolveTestApp.dll\", assemblyFile: \"assemblyresolvetestapp.dll\", type: \"assemblyresolvetestapp.publicclassnodefaultconstru\"..., returnedFullNameType: \"AssemblyResolveTestApp.PublicClassNoDefaultConstru\"..., exceptionType: typeof(System.TypeLoadException))" type="System.Tests.AppDomainTests" method="TestingCreateInstanceFromObjectHandle" time="0.0007783" result="Fail">
<failure exception-type="Xunit.Sdk.ThrowsException">
<message><![CDATA[Assert.Throws() Failure\nExpected: typeof(System.TypeLoadException)\nActual: typeof(System.IO.FileNotFoundException): Could not load file or assembly '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/4EB47718-1F6F-44CD-A084-9A74506B1784/data/Containers/Bundle/Application/0B1FEE04-BA5E-4B90-8785-8982D00AB2C6/System.Runtime.Extensions.Tests.app/assemblyresolvetestapp.dll' or one of its dependencies.\n---- System.IO.FileNotFoundException : Could not load file or assembly '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/4EB47718-1F6F-44CD-A084-9A74506B1784/data/Containers/Bundle/Application/0B1FEE04-BA5E-4B90-8785-8982D00AB2C6/System.Runtime.Extensions.Tests.app/assemblyresolvetestapp.dll' or one of its dependencies.]]></message>
<stack-trace><![CDATA[ at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.Tests.AppDomainTests.<>c__DisplayClass57_0.<TestingCreateInstanceFromObjectHandle>b__0()
----- Inner Stack Trace -----
at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.Tests.AppDomainTests.<>c__DisplayClass57_0.<TestingCreateInstanceFromObjectHandle>b__0()]]></stack-trace>
</failure>
</test>
The library test
System.Tests.AppDomainTests.TestingCreateInstanceFromObjectHandlefailed on iOSSimulator/tvOSSimulator x64 legs in #65551 with the following:https://dev.azure.com/dnceng/public/_build/results?buildId=1620509&view=ms.vss-test-web.build-test-results-tab&runId=45059162&resultId=126789&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab
cc @steveisok @akoeplinger