Resolve SkiaSharp Build Issues in .NET 11 Blazor WebAssembly

12 Nov 20261 minute to read

Currently, SkiaSharp does not officially support .NET 11. In addition, Syncfusion® uses the older SkiaSharp 4.150.1 packages. As a workaround, the Blazor WebAssembly sample can be built and run successfully by manually upgrading the SkiaSharp packages to 4.156.0.

This workaround enables the Blazor WebAssembly sample to work with .NET 11 until official .NET 11 support is provided by the SkiaSharp team.

Upgrade the SkiaSharp packages

Upgrade the following SkiaSharp packages to version 4.156.0 in your project.

<PackageReference Include="SkiaSharp.HarfBuzz" Version="4.156.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="4.156.0" />
<PackageReference Include="SkiaSharp.Views.Blazor" Version="4.156.0" />

Alternatively, you can use the following package manager commands.

Install-Package SkiaSharp.HarfBuzz -Version 4.156.0
Install-Package SkiaSharp.NativeAssets.Linux -Version 4.156.0
Install-Package SkiaSharp.Views.Blazor -Version 4.156.0
dotnet add package SkiaSharp.HarfBuzz -v 4.156.0
dotnet add package SkiaSharp.NativeAssets.Linux -v 4.156.0
dotnet add package SkiaSharp.Views.Blazor -v 4.156.0
dotnet restore

See also