Add PreserveDependency to workaround linker limitation
authorvitek-karas <vitek.karas@microsoft.com>
Wed, 19 Feb 2020 14:03:21 +0000 (06:03 -0800)
committervitek-karas <vitek.karas@microsoft.com>
Wed, 19 Feb 2020 14:03:21 +0000 (06:03 -0800)
commitcc52d103157c8a861ed053d20180ca3b18352147
treebdb606b0c74b4367e79d49481280ffde56e12805
parent7818335aabed0e7acb843b0c4be1b86f807cbc3c
Add PreserveDependency to workaround linker limitation

Both cases have type references to a different assembly and linker currently can't add a new assembly to the closure when analyzing Type.GetType - so PreserveDepenency attribute is necessary in this case.
src/coreclr/src/System.Private.CoreLib/src/System/Threading/SynchronizationContext.Uap.cs
src/libraries/System.Private.CoreLib/src/System/Resources/ResourceManager.Uap.cs