question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DllNotFoundException on Windows 11 and Visual Studio 2022 with .net core 6

See original GitHub issue

Hi

I’m using Windows 11 and created a new Avalonia app using

> dotnet new avalonia.mvvm -o MyApp

And when I start the app using Visual Studio 2022, I get the following error:

System.TypeInitializationException: 'The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.'
Inner Exception
DllNotFoundException: Unable to load DLL 'libSkiaSharp' or one of its dependencies: The specified module could not be found. (0x8007007E)

image

Here’s the project configuration:

image

Any suggestions would be appreciated on how to get past this error. Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
CatWithAutismcommented, Apr 27, 2022

@karthitect i’ve solved this issue via dotnet workload install wasm-tools

When you install this you have to enable it in your .csproj file

<WasmNativeStrip>true</WasmNativeStrip>
<RunAOTCompilation>true</RunAOTCompilation>

Please give me a feedback if it helps you.

0reactions
schnerringcommented, Apr 29, 2022

dotnet workload install wasm-tool

That’s what it fixed for me. It’s also mentioned in the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IIS asp.net core 6 "DllNotFoundException: Unable to load ...
I am working on asp net core 6 app that uses unmanaged code located on a dll that is in program files x86....
Read more >
DllNotFoundException Class (System)
The exception that is thrown when a DLL specified in a DLL import cannot be found. public ref class DllNotFoundException : TypeLoadException. C#...
Read more >
Visual Studio 2022 Compatibility
Visual Studio 2022 Platform Targeting and Compatibility. Article; 02/02/2023. Feedback ... Windows 11 S ... NET Core 8.0 Preview, 7.0, 6.0.
Read more >
Unable to load DLL "Microsoft.CognitiveServices.Speech. ...
Hi. I have a console application that I made in Visual Studio 2022, using C#, .NET Framework 4.8.1, and the Azure Cognitive Services...
Read more >
Visual Studio 2022 assembly and asp.net runtime error
I am trying to code a C# app on asp.net web core. I have installed the .net framework 6.0. my computer is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found