Skip to content

Blazor Crashes in AOT mode When Referencing SkiaSharp (Regression in NET8-preview.2) #83970

@elepner

Description

@elepner

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When project has references to SkiaSharp and after publishing it in production with AOT flag, the application does not boot.

Expected Behavior

Application should load like it used to in .NET 7.

Steps To Reproduce

Minimalistic repository to reproduce the bug https://github.com/elepner/dotnet-8-preview-bug

Exceptions (if any)

Here's the output of my browser after opening the application:
image

.NET Version

8.0.100-preview.2.23157.25

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions