diff --git a/build/nuget/uno.winui.winappsdk.targets b/build/nuget/uno.winui.winappsdk.targets
index 64b21c87ae4e..e2be35d16f4c 100644
--- a/build/nuget/uno.winui.winappsdk.targets
+++ b/build/nuget/uno.winui.winappsdk.targets
@@ -20,7 +20,7 @@
+ BeforeTargets="$(_UnoRemoveReferences_BeforeTargets)">
<_UnoReferencePathToRemove
Include="@(ReferencePath)"
@@ -48,7 +48,8 @@
+ BeforeTargets="$(_UnoRemoveReferences_BeforeTargets)"
+ Condition="$(ShouldComputeInputPris)">