You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure the sample runs without exceptions, similar to how it worked in .NET 8.
Actual Behavior
It throws a System.DllNotFoundException: libSkiaSharp exception.
Version of SkiaSharp
2.88.8 (Current)
Last Known Good Version of SkiaSharp
2.88.6 (Deprecated)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11
Devices
No response
Relevant Screenshots
Relevant Log Output
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: libSkiaSharp
System.DllNotFoundException: libSkiaSharp
at SkiaSharp.SKPath..ctor()
at SkiaSharpNET9.Pages.Home..ctor() in D:\Net9\SkiaSharpNET9\SkiaSharpNET9\Pages\Home.razor:line 6
at System.Object.InvokeStub_Home..ctor(Object , Object , Object , Object , Object )
at System.Reflection.ConstructorInvoker.InvokeImpl(Object arg1, Object arg2, Object arg3, Object arg4)
at System.Reflection.ConstructorInvoker.Invoke()
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.<>c__DisplayClass17_0.<CreateFactoryReflection>b__0(IServiceProvider serviceProvider, Object[] arguments)
at Microsoft.AspNetCore.Components.DefaultComponentActivator.CreateInstance(Type componentType)
at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType, IComponentRenderMode callerSpecifiedRenderMode, Nullable`1 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame[] frames, Int32 frameIndex, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange`1 oldTree, ArrayRange`1 newTree) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Error: No element is currently associated with component 6Error: No element is currently associated with component 6
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
We have updated to the latest preview of 3.0.0-preview.5.3 in the early access NuGet feed and added the following codes in the .csproj file, which works fine with SkiaSharp access in Blazor WASM:
I have attached a sample for your reference. When can we expect the standard release for these changes on nuget.org? Given that .NET 9 is scheduled for release on November 12, is it possible to have this release on or before that date?
Description
I created a new WASM project using SkiaSharp.Blazor.Views to utilize
SKPath
, but it throws an exception, preventing access to the SkiaSharp object.My project references the following package:
.NET 8:
default.NET8.mp4
.NET 8 Sample:
SkiaSharpNET8.zip
.NET 9:
default.NET9.mp4
.NET 9 Sample:
SkiaSharpNET9.zip
This issue only occurs in .NET 9; it worked perfectly in .NET 8. Could you please investigate this issue and provide suggestions?
Code
Code Snippet:
Home.razor
.NET9 Sample:
SkiaSharpNET9.zip
Expected Behavior
Ensure the sample runs without exceptions, similar to how it worked in .NET 8.
Actual Behavior
It throws a System.DllNotFoundException: libSkiaSharp exception.
Version of SkiaSharp
2.88.8 (Current)
Last Known Good Version of SkiaSharp
2.88.6 (Deprecated)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11
Devices
No response
Relevant Screenshots
Relevant Log Output
Code of Conduct
The text was updated successfully, but these errors were encountered: