I have a WPF net core project and it's using CEF ChromiumWebBrowser, in the debug mode it run ok. Then I create Setup Project to make file msi file for client but it has error "File 'CefSharp.Core.Runtime.dll' of project output 'Publish Items from CommunicateWithWeb (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'" while building. After I change TargetPlatform of Setup Project to x64, build is successfully.
Then I run msi file to install app in my PC but I can't open this app by clicking exe file. I open event viewer and see that this error "System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp, Version=220.127.116.11, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified." is displayed.
So anyone can help me this problem? Any comment is also important for me. Thank you.
Note: I use VS2022, CefSharp.WPF.NETCore ver 108.4.130. I also install MS Visual C++ 2015-2022 Redistributable (x64 and x86) ver 14.34.31931
I installed Orca and see that CefSharp assembly is already included in .msi file.
<PropertyGroup Condition="'$(PlatformTarget)' == 'x64'">
<PropertyGroup Condition="'$(PlatformTarget)' == 'x86'">
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)