简体   繁体   中英

Unable to use CefSharp in winforms for AnyCPU. Same is working when change build to x64 bit

We have a C# application in which we are using CefSharp.Core.dll, CefSharp.dll and CefSharp.Winforms.dll and application build was x64 and everything was working fine for 64-bit systems. But now one of our clients requested application to run on 32-bit Systems. I have tried everything but all in vain. Installed CefSharp (57.0) from nuget C++ redistributable is also installed as I have mentioned that application is working fine if I change project build to x64. Don't know what I'm missing. Also tried these solutions " https://github.com/cefsharp/CefSharp/issues/1714 ". 在此处输入图像描述

Alright, i got the solution. Posting it as a solution so that it can help others in future. The mistake was i had multiple projects in a solution and I was changing only project's build to (32-bit ie x86) but was not changing solution's platform build and deploy. Right Click Solution->Properties->configuration-> and Changed build to x86 worked for me. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM