Allow ConfigurationManager to load when GetEntryAssembly returns null. (#32195)
authorEric Erhardt <eric.erhardt@microsoft.com>
Mon, 24 Feb 2020 22:52:08 +0000 (16:52 -0600)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2020 22:52:08 +0000 (16:52 -0600)
commit40d4b206233fcca34b3c8774c418668285b8f1a4
tree017fdcd89be94c4fc2a864e14182ad03aa495bed
parent9449633c053ec2948fd50e7c2f92bf584da1cffc
Allow ConfigurationManager to load when GetEntryAssembly returns null. (#32195)

* Clean up unused variable in ClientConfigPaths.

* Allow ConfigurationManager to load when GetEntryAssembly returns null.

Attempt to find the native host to maintain behavior from netfx.

Fix #25027
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs
src/libraries/System.Configuration.ConfigurationManager/tests/System.Configuration.ConfigurationManager.Tests.csproj
src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/CustomHostTests.cs [new file with mode: 0644]