diff options
-rw-r--r-- | eng/illink.targets | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/eng/illink.targets b/eng/illink.targets index ce06abbf10e..33d7dd9a186 100644 --- a/eng/illink.targets +++ b/eng/illink.targets @@ -1,17 +1,10 @@ <Project> <PropertyGroup> <IsTrimmable Condition="'$(IsTrimmable)' == ''">true</IsTrimmable> - <PrepareResourcesDependsOn> - _EmbedILLinkXmls; - $(PrepareResourcesDependsOn) - </PrepareResourcesDependsOn> - </PropertyGroup> - - <PropertyGroup> - <TargetsTriggeredByCompilation Condition="'$(DesignTimeBuild)' != 'true'"> - $(TargetsTriggeredByCompilation); - ILLinkTrimAssembly - </TargetsTriggeredByCompilation> + <PrepareResourcesDependsOn>_EmbedILLinkXmls;$(PrepareResourcesDependsOn)</PrepareResourcesDependsOn> + <TargetsTriggeredByCompilation Condition="'$(DesignTimeBuild)' != 'true'">$(TargetsTriggeredByCompilation);ILLinkTrimAssembly</TargetsTriggeredByCompilation> + <!-- ApiCompat should perform compatibility checks on the trimmed assemblies. --> + <ApiCompatDependsOn>$(ApiCompatDependsOn);ILLinkTrimAssembly</ApiCompatDependsOn> </PropertyGroup> <!-- Inputs and outputs of ILLinkTrimAssembly --> |