<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <!--
    OpenMaui Linux Build Targets
    Handles MauiImage items for Linux platform since we don't use the full MAUI SDK targets.
  -->

  <!-- Copy MauiImage items to output directory after Build -->
  <Target Name="CopyMauiImagesToOutput" AfterTargets="Build" Condition="@(MauiImage) != ''">
    <Message Importance="normal" Text="OpenMaui: Copying MauiImage items to output..." />
    <Copy SourceFiles="@(MauiImage)" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" />
  </Target>

  <!-- Copy MauiImage items to publish directory after Publish -->
  <Target Name="CopyMauiImagesToPublish" AfterTargets="Publish" Condition="@(MauiImage) != ''">
    <Message Importance="normal" Text="OpenMaui: Copying MauiImage items to publish folder..." />
    <Copy SourceFiles="@(MauiImage)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="true" />
  </Target>

</Project>
