DependencyContextLoader should check Assembly.CodeBase
authorEric Erhardt <eric.erhardt@microsoft.com>
Thu, 29 Mar 2018 19:41:58 +0000 (14:41 -0500)
committerKarel Zikmund <karelz@microsoft.com>
Fri, 30 Mar 2018 22:39:16 +0000 (15:39 -0700)
commit6f9ccd36f3d8d299758435b63d96d708022f4278
treed71f8e13bdd60f7ad907be54d99c367f55cc178b
parentbb8220e338ee06cf9558974e4358a36f0b7b46d4
DependencyContextLoader should check Assembly.CodeBase

When running with shadow copy on the .NET Framework, Assembly.Location can be different than Assembly.CodeBase.  We should check both in the DependencyContextLoader to support unit tests running with shadow copy.

Fix dotnet/core-setup#3308

Commit migrated from https://github.com/dotnet/core-setup/commit/88f56426dfcf62359c9a59adaa269a2cbdb96126
Microsoft.DotNet.CoreSetup.sln
src/installer/managed/Microsoft.Extensions.DependencyModel/DependencyContextLoader.cs
src/installer/test/Microsoft.Extensions.DependencyModel.Tests/DependencyContextLoaderTests.cs