The name ChromiumWebBrowser does not exist in the namespace “clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf”

后端 未结 5 829
难免孤独
难免孤独 2021-01-12 07:20

I had followed this link to implement CefSharp applicaton.

But I have stuck while coding MainWindow.xaml.

Blend for VS 2015 said,

5条回答
  •  自闭症患者
    2021-01-12 07:52

    I had the same problem and i solve it changing configuration to from "debug" to "release" and using "x64" as platform.

    But it was not enought to change it from the solution menú, as i usually do. You need to go to visual studio main menú under "Compile > Configuration administration", as you can see in the following link from Microsoft:

    https://docs.microsoft.com/es-es/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2015&redirectedfrom=MSDN#Anchor_0

    This solution was in fact in the Readme.txt file for cefsharp, as stated in the "Documentation" link provided by saschad in his answer: https://github.com/cefsharp/CefSharp/blob/cefsharp/69/NuGet/Readme.txt

    There you can read it:

    • For x86 or x64set your solution target architecture tox86orx64`, just changing the project is currently not enough (See https://msdn.microsoft.com/en-us/library/ms185328.aspx#Anchor_0 for details).

    Now I have it running like a charm :D

提交回复
热议问题