How to solve the error "An attempt was made to load a program with an incorrect format. "

Peter Shaw 41 Reputation points
2023-09-08T06:33:51.2966667+00:00
Hi,

I am using VS2022, my c# solution got an error "An attempt was made to load a program with an incorrect format. ", it was generated from SkiaSharp library.

My solution target framework is .Net Framework 4.6.1
Build Platform: Active (any CPU)
  
Best regards,

Peter 
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

Accepted answer
  1. Alexander Petree 150 Reputation points
    2023-09-08T08:25:04.8833333+00:00

    Reply to: VS2022, my c# solution had an error "An attempt was made to load a program with an incorrect format. " .Skia library.

    -framework is .Net Framework 4.6.1

    Build Platform: Active (any CPU)

    Skia is a xamarin which is a library available on visual studio and you should update to .net Framework 5.0


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.