Merge pull request #5157 from lambdageek/bug-57850+57851-2017-06
commit04419ee95be98831e0cad46135f38cd705630486
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Fri, 30 Jun 2017 17:33:23 +0000 (30 13:33 -0400)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2017 17:33:23 +0000 (30 13:33 -0400)
tree4001160ebe884cb844f2e1f31dd7ee0797feb870
parent3505d310dff7f05a1cab10241eb91e664efb3151
parentfc339c27778e0ff9e723a785187c1a4e1f576c2b
Merge pull request #5157 from lambdageek/bug-57850+57851-2017-06

[sre] Deal with ResolveEventHandler returning an AssemblyBuilder (Fixes #57850, #57851)

Fix a couple of bugs in the situation where a ResolveEventHandler happens to return an AssemblyBuilder.

#57850 - if the ResolveEventHandler returns a reflection only assembly, throw a FileNotFoundException
#57851 - don't look for a ReferenceAssemblyAttribute on assemblies returned by a ResolveEventHandler if they happen to be an AssemblyBuilder. (the native code path to get there is to try and instantiate a custom attribute in some other assembly, hence the fairly convoluted test in assemblyresolve_event5 and its helper files)