Skip to content

Commit

Permalink
fix: Restore ElevatedView support for WinAppSDK
Browse files Browse the repository at this point in the history
This changes explicitly includes PRI files and related assets in the referencing app.
  • Loading branch information
jeromelaban authored Jan 31, 2023
1 parent 46b2708 commit 1e1a003
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build/uno.winui.winappsdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,31 @@
</ItemGroup>
</Target>

<Target Name="_UnoIncludeUIToolkit"
BeforeTargets="$(_UnoRemoveReferences_BeforeTargets)">

<!--
Since we're not using the standard packaging mechanism, the Uno.UI.Toolkit resources
need to be included explicitly.
-->

<ItemGroup>
<PriOutputs Include="$(PkgUno_WinUI)/lib/net5.0-windows10.0.18362.0/Uno.UI.Toolkit.pri"
TargetPath="Uno.UI.Toolkit.pri"
CopyLocal="True"
CopyToOutputDirectory="PreserveNewest"
OutputGroup="CopyLocalFilesOutputGroup" />

<_UnoUIToolkitAssets Include="$(PkgUno_WinUI)/lib/net5.0-windows10.0.18362.0/Uno.UI.Toolkit/**"/>

<None
Include="@(_UnoUIToolkitAssets)"
TargetPath="Uno.UI.Toolkit/%(RecursiveDir)%(Filename)%(Extension)"
CopyToOutputDirectory="PreserveNewest" />

<_UnoUIToolkitAssets Remove="@(_UnoUIToolkitAssets)" />
</ItemGroup>

</Target>

</Project>

0 comments on commit 1e1a003

Please sign in to comment.