Open SuriyaBalamurugan opened 1 year ago
Are you using Docker to build image?
Hi Saibamen,
I’m not using Docker to build an image. I deployed to App Service using GitHub Actions. The GitHub Actions workflow directly builds and deploy the application without containerization.
Regards, Suriya Balamurugan.
Description
We are using SkiaSharp in Blazor WebAssembly (client side) application. When deploy Blazor client side application (.NET 6.0) to Azure App Service (Windows) using GitHub Actions (CI/CD Pipeline), SkiaSharp works fine without any issue. But when we deploy Blazor client side application (.NET 7.0) to Azure App Service (Windows) using GitHub Actions (CI/CD Pipeline) we are facing libSkiaSharp assembly not found issue.
Code
Expected Behavior
SkiaSharp should work properly when deploy Blazor client side application (.NET 7.0) to Azure App Service (Windows) using GitHub Actions (CI/CD Pipeline).
Actual Behavior
The following exception is thrown.
System.TypeInitializationException: TypeInitialization_Type, SkiaSharp.SKImageInfo ---> System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor() Exception_EndOfInnerExceptionStack at Blazor_SkiaSharp.Pages.SkiaSharpTest.Create()TypeInitialization_Type, SkiaSharp.SKImageInfo at Blazor_SkiaSharp.Pages.SkiaSharpTest.Create()
Basic Information
Reproduction Link
Attached both .NET 7.0 and .NET 6.0 samples along with workflow file, Blazor-GitHub-Actions.zip
Reference videos for how to deploy app to Azure using GitHub Actions (CI/CD Pipeline)
https://www.youtube.com/watch?v=UpWeffxf790 https://www.youtube.com/watch?v=QP0pi7xe24s https://learn.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel