Running CEFSharp browser on Windows Arm64EC

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Running CEFSharp browser on Windows Arm64EC

Postby nrcaliendo » Wed Nov 08, 2023 8:59 am

Our application uses WPF, .NET Framework 8, CefSharp.Wpf and cef.redist.x64.

We currently support only Windows x64 operating systems, but we are working on supporting Windows ARM64 also. Windows on Arm can run unmodified x86 and x64 apps via Arm64EC (Emulation Compatible).

Our app installs and runs without any issues on Windows ARM64, thanks to Arm64EC. However, when we try to initialize CEFSharp (Cef.Initialize), it throws the following exception:

Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. The specified module could not be found.

Presumably, this is because CefSharp determines the runtime environment to be neither x86 nor x64, which appear to be the only supported architectures for Windows.

Is there any way to initialize CefSharp and force it to run as x64 in compatibility mode?
nrcaliendo
Newbie
 
Posts: 2
Joined: Tue Nov 07, 2023 7:47 am

Re: Running CEFSharp browser on Windows Arm64EC

Postby amaitland » Fri Nov 10, 2023 2:58 pm

For .Net 8 you should be using the http://www.nuget.org/packages/CefSharp.Wpf.NETCore/ package.

See https://github.com/cefsharp/CefSharp/wi ... greaterFor

`.Net 5.0` and greater `CefSharp` supports running natively on `ARM64`.

Chromium is very complex, running via emulation is not recommended.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Running CEFSharp browser on Windows Arm64EC

Postby nrcaliendo » Thu Nov 30, 2023 9:30 am

We can't target .NET Core. We also tried targeting .NET Framework 4.8.1 with a ARM64 solution platform, which fully supports building apps that run natively on Arm64.

Can CEFSharp run natively on Arm64 inside an app built this way?
nrcaliendo
Newbie
 
Posts: 2
Joined: Tue Nov 07, 2023 7:47 am

Re: Running CEFSharp browser on Windows Arm64EC

Postby amaitland » Fri Dec 01, 2023 3:51 pm

nrcaliendo wrote:Our application uses WPF, .NET Framework 8, CefSharp.Wpf and cef.redist.x64.


If you are using .NET 8 as originally stated then you just need to use the NETCore package which is compatible with .Net 5+

If you are stuck with .Net 4.8.1 then, no, there is no current support for running on ARM64 natively. https://github.com/cefsharp/CefSharp/issues/4155
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Running CEFSharp browser on Windows Arm64EC

Postby amaitland » Fri Dec 01, 2023 3:59 pm

nrcaliendo wrote:
Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. The specified module could not be found.


Make sure you have the x64 bit version of Visual C++ Runtime installed.

https://learn.microsoft.com/en-us/cpp/w ... 9-and-2022
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 135 guests