Ifdef out DynamicDependencies that are not necessary (#87209)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 8 Jun 2023 09:14:36 +0000 (18:14 +0900)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 09:14:36 +0000 (18:14 +0900)
commitee84ffdd685e0b8ebe1e61e44d47ac7e69d0d146
tree3abf37334853e244a63241ae6cacebfc87d43c25
parent0eb712188042ed065ee1e57aa35dbf468f32ed0d
Ifdef out DynamicDependencies that are not necessary (#87209)

These create unnecessary reflection targets. Trimming done by NativeAOT will do the right thing and it is redundant on CoreCLR.
src/libraries/System.Private.CoreLib/src/System/AppContext.cs
src/libraries/System.Private.CoreLib/src/System/String.cs