{"action":"opened","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/1161","labels_url":"https://api.github.com/repos/nunit/nunit/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1161/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/1161/events","html_url":"https://github.com/nunit/nunit/issues/1161","id":124006394,"number":1161,"title":"NUnit3-Console.exe Assembly load exception when test assembly references x86 compiled assembly which references another x86 compiled assembly","user":{"login":"PeterAldur","id":2506391,"avatar_url":"https://avatars.githubusercontent.com/u/2506391?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterAldur","html_url":"https://github.com/PeterAldur","followers_url":"https://api.github.com/users/PeterAldur/followers","following_url":"https://api.github.com/users/PeterAldur/following{/other_user}","gists_url":"https://api.github.com/users/PeterAldur/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterAldur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterAldur/subscriptions","organizations_url":"https://api.github.com/users/PeterAldur/orgs","repos_url":"https://api.github.com/users/PeterAldur/repos","events_url":"https://api.github.com/users/PeterAldur/events{/privacy}","received_events_url":"https://api.github.com/users/PeterAldur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T01:57:47Z","updated_at":"2015-12-28T01:57:47Z","closed_at":null,"body":"I have ran into peculiar issue, that I feel is worth reporting.\r\n\r\nUsing NUnit.Console.3.0.1\r\nExecuting tests for example test library: Tests.DLL\r\nWith following arguments:\r\nC:\\Example\\packages\\NUnit.Console.3.0.1\\tools\\nunit3-console.exe C:\\Example\\Tests\\bin\\Release\\QsehEiJfpnSP7yg5NCqm1zISM1sgEwqS.nunit --work=C:\\Example --noresult --noheader --x86 --framework=net-4.0 --process=InProcess\r\n\r\nQsehEiJfpnSP7yg5NCqm1zISM1sgEwqS.nunit is an autogenerated TeamCity .nunit project file, with contents:\r\n\r\n```xml\r\n<NUnitProject>\r\n<Settings activeconfig=\"active\" appbase=\"C:\\Example\"/>\r\n<Config binpath=\"Tests\\bin\\Release\" configfile=\"Tests\\bin\\Release\\Tests.dll.config\" name=\"active\">\r\n<assembly path=\"Tests\\bin\\Release\\Tests.dll\"/>\r\n</Config>\r\n</NUnitProject>\r\n```\r\n\r\n**Case 1:**\r\n\r\nTests.dll is compiled for AnyCPU, \r\nTests.dll references App.exe compiled for x86\r\nApp.exe references App.Core.dll compiled for x86\r\n\r\nConsole runner exits with code -2 and error message:\r\n*Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information*\r\nThere is no binding debug output.\r\n\r\nApp.Core.dll is now recompiled for AnyCPU, App.exe is still compiled for x86\r\n\r\nConsole runner works correctly and runs all tests.\r\n\r\n**Case 2:**\r\n\r\nSame as Case 1, except Tests.dll is compiled for x86\r\n\r\nIn this case, console runner fails with exception System.BadImageFormatException for Tests.dll, with binding error: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.\r\n\r\nIs this a bug or is console runner unable to load x86 compiled dlls?"}}