From 03056be2555f7a57c623054ba652fe0a5b36c603 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Wed, 15 May 2024 08:14:46 +0300 Subject: [PATCH] fix: Fix illinkerpath --- .../Uno.UI.Tasks/Content/Uno.UI.Tasks.targets | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/src/SourceGenerators/Uno.UI.Tasks/Content/Uno.UI.Tasks.targets b/src/SourceGenerators/Uno.UI.Tasks/Content/Uno.UI.Tasks.targets index d8e2d0aa5b2f..03c5c073edc5 100644 --- a/src/SourceGenerators/Uno.UI.Tasks/Content/Uno.UI.Tasks.targets +++ b/src/SourceGenerators/Uno.UI.Tasks/Content/Uno.UI.Tasks.targets @@ -6,8 +6,30 @@ <_IsXamlTrimmingAvailable>true <_IsXamlTrimmingAvailable Condition="'$(MSBuildRuntimeType)'!='Core' and !$([MSBuild]::IsOSPlatform('windows'))">false + <_UnoLinkerHintGeneratorILLinkerPath>$(MSBuildThisFileDirectory)\..\tools\linker + + + + + + + <_UnoLinkerHintGeneratorILLinkerPath>$([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly)))\..\net$(TargetFrameworkVersion.Substring(1)) + + + + + <_UnoLinkerHintGeneratorILLinkerPath>$([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly)))\..\net7.0 + + + + + + @@ -312,16 +334,6 @@ - <_UnoLinkerHintGeneratorILLinkerPath>$(MSBuildThisFileDirectory)\..\tools\linker - - - <_UnoLinkerHintGeneratorILLinkerPath - Condition=" - '$(TargetFrameworkIdentifier)'=='.NETCoreApp' - and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '6.0')) - and '$(ILLinkTasksAssembly)'!=''" - >$([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly)))\..\net$(BundledNETCoreAppTargetFrameworkVersion) - <_UnoUIPackageBasePath Condition=" '%(UnoRuntimeEnabledPackage.Identity)'=='Uno.UI'