Make ResourceManager netstandard 2.0 API behave correctly (#12536)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Thu, 29 Jun 2017 19:32:30 +0000 (12:32 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2017 19:32:30 +0000 (12:32 -0700)
commit88e0428caa33fd04bd8f5f8bc1a60b6a44b93622
treee8d1ba1f595c9d4ebb3e2f6d4b2e5cb22d926a01
parent07258b7ac54cef46ef143b450d6e607fd4a017db
Make ResourceManager netstandard 2.0 API behave correctly (#12536)

* Make ResourceManager netstandard 2.0 API behave correctly

In netstandard 2.0 we have enabled the APIs like GetObject, GetStream,..etc. these are not functioning correctly in UWP apps because was assuming we always uses PRI files. The changes here is to initialize the managed resources too and let these APIs behave as if we are running inside desktop app.

* added #ifdef

* Remove the throwing as PRI can handle case insenitive lookup

* remove un-needed resources
src/mscorlib/src/System/Resources/ResourceManager.cs