|
30 | 30 | we might be able to use built-in functionality instead of a packagereference. |
31 | 31 | --> |
32 | 32 | <_RequiresILLinkPack>false</_RequiresILLinkPack> |
33 | | - <ILLinkTasksAssembly>$(ToolsILLinkDir)$(NetCoreAppToolCurrent)/ILLink.Tasks.dll</ILLinkTasksAssembly> |
| 33 | + <ILLinkTasksAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(ToolsILLinkDir)$(NetCoreAppToolCurrent)\ILLink.Tasks.dll</ILLinkTasksAssembly> |
| 34 | + <ILLinkTasksAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(ToolsILLinkDir)$(NetFrameworkToolCurrent)\ILLink.Tasks.dll</ILLinkTasksAssembly> |
34 | 35 | <PrepareResourcesDependsOn>_EmbedILLinkXmls;$(PrepareResourcesDependsOn)</PrepareResourcesDependsOn> |
35 | 36 | <TargetsTriggeredByCompilation Condition="'$(DesignTimeBuild)' != 'true'">$(TargetsTriggeredByCompilation);ILLinkTrimAssembly</TargetsTriggeredByCompilation> |
36 | 37 |
|
|
119 | 120 | </ItemGroup> |
120 | 121 | </Target> |
121 | 122 |
|
122 | | - <UsingTask TaskName="CombineLinkerXmlFiles" AssemblyFile="$(ILLinkTasksAssembly)" Condition="'$(ILLinkTasksAssembly)' != ''" /> |
| 123 | + <UsingTask TaskName="CombineLinkerXmlFiles" |
| 124 | + AssemblyFile="$(ILLinkTasksAssembly)" |
| 125 | + TaskFactory="TaskHostFactory" |
| 126 | + Condition="'$(ILLinkTasksAssembly)' != ''" /> |
123 | 127 | <Target Name="_CombineILLinkDescriptorsXmls" |
124 | 128 | Condition="'@(ILLinkDescriptorsXmls)' != ''" |
125 | 129 | Inputs="@(ILLinkDescriptorsXmls)" |
|
212 | 216 |
|
213 | 217 | <!-- Examines the "input assembly" for IL that is unreachable from public API and trims that, |
214 | 218 | rewriting the assembly to an "output assembly" --> |
215 | | - <UsingTask TaskName="ILLink" AssemblyFile="$(ILLinkTasksAssembly)" Condition="'$(ILLinkTasksAssembly)' != ''" /> |
| 219 | + <UsingTask TaskName="ILLink" |
| 220 | + AssemblyFile="$(ILLinkTasksAssembly)" |
| 221 | + TaskFactory="TaskHostFactory" |
| 222 | + Condition="'$(ILLinkTasksAssembly)' != ''" /> |
216 | 223 | <Target Name="ILLinkTrimAssembly" |
217 | 224 | Condition="'$(ILLinkTrimAssembly)' == 'true'" |
218 | 225 | DependsOnTargets="PrepareForAssembliesTrim"> |
|
0 commit comments