-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Hello,
The CefSharp 39 packages don't work on Windows XP. I'm aware of the FAQ entry, but the problems here aren't covered there.
Most importantly, it just plain bombs. Dependency Walker shows that the problem is that CefSharp.Core.dll refers to GetTickCount64, which is new in Windows Vista. This dependency does not come from the source code, and if I build CefSharp myself instead of using the pre-built packages, there is no reference to GetTickCount64 anywhere. This may be related to one of the updates to Visual Studio.
I will be using the locally built packages for now to avoid this problem, but it would be nice if the official packages could be built without this dependency.
Additionally, a milder issue, the DependencyChecker.IsWindowsXp property doesn't work. Its value is only ever read in the DependencyChecker.CefOptionalDependencies initialiser, but the initialiser will already have run by the time any code gets the chance to set the property value. It seems like it would be easy to make DependencyChecker.IsWindowsXp a read-only property: it can simply check Environment.OSVersion.Version.Major < 6 (optionally in addition to a sanity check -- Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version.Major < 6 -- but clearly the other platforms aren't going to work).
I clean up DependencyChecker.CefOptionalDependencies manually now to work around that problem.
With those changes, it's working nicely for me on XP SP3, .NET Framework 4 and Visual C++ redistributables installed.