Skip to content

Commit

Permalink
Strip the ILLinkTrim.xml file from System.Security assemblies (#36864)
Browse files Browse the repository at this point in the history
Contributes to #35199
  • Loading branch information
eerhardt authored May 22, 2020
1 parent 2614887 commit 0a8363e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/System.Private.CoreLib/src/System/AppDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
using System.Runtime.Loader;
using System.Runtime.Remoting;
Expand Down Expand Up @@ -386,6 +387,8 @@ public void SetThreadPrincipal(IPrincipal principal)
return oh?.Unwrap();
}

[PreserveDependency("GetDefaultInstance", "System.Security.Principal.GenericPrincipal", "System.Security.Claims")]
[PreserveDependency("GetDefaultInstance", "System.Security.Principal.WindowsPrincipal", "System.Security.Principal.Windows")]
internal IPrincipal? GetThreadPrincipal()
{
IPrincipal? principal = _defaultPrincipal;
Expand Down

0 comments on commit 0a8363e

Please sign in to comment.