Harden AssemblyDependencyResolver assemblyPaths (#42055)
* Harden AssemblyDependencyResolver assemblyPaths AssemblyDependencyResolver is made resilience to the case where hostpolicy.dll returns the same assembly paths by ignoring multiple entries. This is done by using OrdinalIgnoreCase comparison on Windows and Ordinal comparison elsewhere Fix #37162
* Pick the first simple assembly for multiples
AssemblyDependencyResolver is made resilience to the case when
hostpolicy.dll returns multiple assembly paths for the same assembly
by picking the first one.
Fix #37162
* missed an extra line
* Test case for casing change with the same assembly
* typo
* Disabled the tests for non-windows
Filed #42334 to track the linux-mac differences
Co-authored-by: Lakshan Fernando <lakshanf@microsoft.com>