Skip to content

Commit

Permalink
fix: Adjust _ValidateSvgDependencySkia to check for minimum `Svg.Sk…
Browse files Browse the repository at this point in the history
…ia` version
  • Loading branch information
Youssef1313 authored Sep 20, 2023
1 parent bbdbefb commit a1f43f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AddIns/Uno.UI.Svg/buildTransitive/Uno.UI.Svg.targets
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
</PropertyGroup>
<ItemGroup>
<_SkiaSharpViewsRefs Include="@(RuntimeCopyLocalItems)" Condition="'%(RuntimeCopyLocalItems.NuGetPackageId)' == '$(_SkiaSharpPackageName)'" />
<_SvgSkiaRefs Include="@(RuntimeCopyLocalItems)" Condition="'%(RuntimeCopyLocalItems.NuGetPackageId)' == 'Svg.Skia'" />
<_SvgSkiaRefs Include="@(RuntimeCopyLocalItems)" Condition="'%(RuntimeCopyLocalItems.NuGetPackageId)' == 'Svg.Skia' AND '%(RuntimeCopyLocalItems.NuGetPackageVersion)' >= '1.0.0.1'" />
</ItemGroup>

<Error Condition="'@(_SkiaSharpViewsRefs)'==''" Text="In order to use Uno Svg support, the '$(_SkiaSharpPackageName)' NuGet Package (2.88.3 or later) must be referenced in the project. You can add &lt;PackageReference Include=&quot;$(_SkiaSharpPackageName)&quot; Version=&quot;2.88.3&quot; /> to your project." />
<Error Condition="'@(_SvgSkiaRefs)'==''" Text="In order to use Uno Svg support, the 'Svg.Skia' NuGet Package (1.0.0 or later) must be referenced in the project. You can add &lt;PackageReference Include=&quot;Svg.Skia&quot; Version=&quot;1.0.0&quot; /> to your project." />
<Error Condition="'@(_SvgSkiaRefs)'==''" Text="In order to use Uno Svg support, the 'Svg.Skia' NuGet Package (1.0.0.1 or later) must be referenced in the project. You can add &lt;PackageReference Include=&quot;Svg.Skia&quot; Version=&quot;1.0.0&quot; /> to your project." />
</Target>
</Project>

0 comments on commit a1f43f3

Please sign in to comment.