Skip to content

Commit

Permalink
fix(reg): Adjust winappsdk references cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 31, 2022
1 parent a5b4029 commit d8ad97f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/uno.winui.winappsdk.targets
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<_UnoRemoveReferences_BeforeTargets>
$(_UnoRemoveReferences_BeforeTargets);
FindReferenceAssembliesForReferences;
MarkupCompilePass1;
</_UnoRemoveReferences_BeforeTargets>
</PropertyGroup>

<Target Name="_UnoRemoveReferences"
BeforeTargets="FindReferenceAssembliesForReferences">
BeforeTargets="$(_UnoRemoveReferences_BeforeTargets)">
<ItemGroup>
<_UnoReferencePathToRemove Include="@(ReferencePath)" Condition="'%(ReferencePath.NuGetPackageId)'=='Uno.UI' or '%(ReferencePath.NuGetPackageId)'=='Uno.WinUI'" />
<ReferencePath Remove="@(_UnoReferencePathToRemove)" />
Expand Down

0 comments on commit d8ad97f

Please sign in to comment.