Recognize TrimMode=partial in ILCompiler targets (#71117)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 15 Jul 2022 08:09:42 +0000 (17:09 +0900)
committerGitHub <noreply@github.com>
Fri, 15 Jul 2022 08:09:42 +0000 (01:09 -0700)
commit8f135a28b705c523ecea3aefd8c166adfa6ce2a5
treee86c481e78b0c15c6a3361052cbd9e81758ee562
parent6f13196cb096ef7c855fe1254214d25c578ad57e
Recognize TrimMode=partial in ILCompiler targets (#71117)

This should root all non-trimmable assemblies, same as TrimmerDefaultAction=copy.

We still support consuming ILCompiler through NuGet when targeting .NET 6, so recognize the old thing too. We might want to cut the .NET 6 support close to RC and at that time TrimmerDefaultAction handling can go away.

Related: https://github.com/dotnet/linker/pull/2856.
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets