Skip to content

Commit

Permalink
fix: copy .ico file to the output directory
Browse files Browse the repository at this point in the history
When running Windows unpackage it not get copied to the output directory automatically, so doing it by our selfs
  • Loading branch information
pictos committed Nov 27, 2023
1 parent 215ad4e commit b63127c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/.nuspec/Uno.Resizetizer.targets
Original file line number Diff line number Diff line change
Expand Up @@ -267,22 +267,22 @@
<Target Name="ValidateAvailableItems"
BeforeTargets="UnoResizetizeCollectItems">

<Warning
<Warning
Condition="'%(UnoIcon.Link)' != ''"
Text="The UnoIcon.Link property will be ignored."/>

<Warning
Condition="'@(UnoIcon->Count())' &gt; '1'"
Text="More than one 'UnoIcon' is defined; only the first will be used." />

<Warning
<Warning
Condition="'@(UnoSplashScreen->Count())' &gt; '1'"
Text="More than one 'UnoSplashScreen' is defined; only the first will be used." />

<Warning
Condition="'%(UnoSplashScreen.Link)' != ''"
Text="The UnoSplashScreen.Link property will be ignored."/>

<Error
Condition="'@(UnoSplashScreen)' != '' And '@(UnoSplashScreen)' == '@(UnoIcon)'"
Text="The value of UnoSplashScreen and UnoIcon cannot be the same."/>
Expand Down Expand Up @@ -486,8 +486,9 @@
<ItemGroup Condition="'$(_UnoResizetizerIsWasmApp)' != 'True'">
<Content Include="@(_UnoResizetizerCollectedImages)"
Link="%(_UnoResizetizerCollectedImages.RecursiveDir)%(_UnoResizetizerCollectedImages.Filename)%(_UnoResizetizerCollectedImages.Extension)"
TargetPath="%(_UnoResizetizerCollectedImages.RecursiveDir)%(_UnoResizetizerCollectedImages.Filename)%(_UnoResizetizerCollectedImages.Extension)">
</Content>
TargetPath="%(_UnoResizetizerCollectedImages.RecursiveDir)%(_UnoResizetizerCollectedImages.Filename)%(_UnoResizetizerCollectedImages.Extension)"/>

<Content Include="@(Content)" Condition="'%(Content.Extension)' == '.ico'" CopyToOutputDirectory="PreserveNewest"/>

<FileWrites Include="@(_UnoResizetizerCollectedImages)"/>
</ItemGroup>
Expand Down

0 comments on commit b63127c

Please sign in to comment.