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'