Skip to content

Commit 4db1a48

Browse files
committed
fix some warnings
Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file.
1 parent a173318 commit 4db1a48

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Source/OxyPlot.Maui.Skia/OxyPlot.Maui.Skia.csproj

+7-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@
3030
</PropertyGroup>
3131

3232
<ItemGroup>
33-
<PackageReference Include="OxyPlot.Core" Version="2.1.2" />
34-
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.6" />
35-
<PackageReference Include="SkiaSharp.Views.Maui.Controls" Version="2.88.6" />
33+
<PackageReference Include="OxyPlot.Core" Version="2.1.2" />
34+
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.6" />
35+
<PackageReference Include="SkiaSharp.Views.Maui.Controls" Version="2.88.6" />
36+
</ItemGroup>
37+
38+
<ItemGroup Condition=" $(TargetFramework.StartsWith('net8.0')) ">
39+
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />
3640
</ItemGroup>
3741

3842
<ItemGroup>

0 commit comments

Comments
 (0)