Skip to content

Commit

Permalink
fix(skia): Assets may not be copied properly to the output or publish…
Browse files Browse the repository at this point in the history
… folder
  • Loading branch information
jeromelaban committed Sep 7, 2020
1 parent 414e106 commit e37c0e8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
15 changes: 7 additions & 8 deletions build/Uno.WinUI.Skia.Gtk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
<PropertyGroup>
</PropertyGroup>

<Target Name="AfterBuild">

<!-- Copy Content files to the output folder like APPX packaging does. -->
<Copy
SourceFiles = "@(ContentWithTargetPath)"
DestinationFiles = "@(ContentWithTargetPath->'$(TargetDir)%(TargetPath)')"
Condition="'%(ContentWithTargetPath.CopyToOutputDirectory)'=='Never'"/>
<Target Name="_UnoBeforeCopyLocal" BeforeTargets="CopyFilesToOutputDirectory;_CopyFilesMarkedCopyLocal">
<ItemGroup>
<ContentWithTargetPath
Update="@(ContentWithTargetPath)"
CopyToOutputDirectory="Always"
Condition="'%(ContentWithTargetPath.CopyToOutputDirectory)'==''" />
</ItemGroup>
</Target>


</Project>
17 changes: 10 additions & 7 deletions build/Uno.WinUI.Skia.Wpf.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
<PropertyGroup>
</PropertyGroup>

<!-- Copy Content files to the output folder like APPX packaging does. -->
<Target Name="AfterBuild">
<Copy
SourceFiles = "@(ContentWithTargetPath)"
DestinationFiles = "@(ContentWithTargetPath->'$(TargetDir)%(TargetPath)')"
Condition="'%(ContentWithTargetPath.CopyToOutputDirectory)'=='Never'"/>
</Target>
<!-- Copy Content files to the output folder like APPX packaging does. -->
<Target Name="_UnoBeforeCopyLocal" BeforeTargets="CopyFilesToOutputDirectory;_CopyFilesMarkedCopyLocal">
<ItemGroup>
<ContentWithTargetPath
Update="@(ContentWithTargetPath)"
CopyToOutputDirectory="Always"
Condition="'%(ContentWithTargetPath.CopyToOutputDirectory)'==''" />
</ItemGroup>
</Target>


</Project>

0 comments on commit e37c0e8

Please sign in to comment.