CefSharp Chromium. Как мне создать пользовательский элемент? - PullRequest
0 голосов
/ 12 мая 2018

VS 2015 выиграть 7x64

Установил CefSharp через Nuget согласно инструкции.
codeproject.com. Встраивание Chrome в приложение C # с помощью CefSharp
Создан пользовательский элемент "CefSharp".
На панели инструментов появился мой "пользовательский элемент".
Перетащите «пользовательский элемент» на форму.
Ошибка.

Текст ошибки
*

Could not create the 'CefSharpInitBrowser' component. Report on
error:
'System.IO.FileNotFoundException: Failed to load file or
assembly "CefSharp.Core, Version = 63.0.3.0, Сulture = neutral,
PublicKeyToken = 40c4b6fc221f4138 "or one of their dependencies.
The specified file can not be found.
Filename: 'CefSharp.Core, Version = 63.0.3.0, Сulture = neutral,
PublicKeyToken = 40c4b6fc221f4138 '
in rsh.Resources.CefSharpInitBrowser..ctorO
Warning: registration of assembly bindings is disabled.
To enable registration of assembly binding errors,
set the registry value
[HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) at 1.
Note. Registration of assembly binding errors can
lead to a certain decrease in productivity.
To disable this feature, remove the registry value
[HKLM \ Software \ Microsoft \ Fusion! EnableLog].

*

Нестандартный код товара

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

// 
using CefSharp;
using CefSharp.WinForms;

namespace rsh.Resources
{
    public partial class CefSharpInitBrowser : UserControl
    {
        public CefSharpInitBrowser()
        {
            InitializeComponent();

            Cef.Initialize(new CefSettings());
            ChromiumWebBrowser browser = new ChromiumWebBrowser("www.google.com");
            this.Controls.Add(browser);
            browser.Dock = DockStyle.Fill;
        }
      }
}

ПОПЫТКА РЕШЕНИЯ 1
Комментарий в строке кода

// Cef.Initialize (new CefSettings ());

Перетащите «пользовательский элемент» на форму.
Ошибка.

Could not create the 'CefSharpInitBrowser' component. Report on
error:
'System.IO.FileNotFoundException: Failed to load file or
assembly "CefSharp.Core, Version = 63.0.3.0, Сulture = neutral,
PublicKeyToken = 40c4b6fc221f4138 "or one of their dependencies.
The specified file can not be found.
Filename: 'CefSharp.Core, Version = 63.0.3.0, Сulture = neutral,
PublicKeyToken = 40c4b6fc221f4138 '

at
CefSharp.WinForms.ChromiumWebBrowser.set_RequestContext (IReque
stContext value)

in CefSharp.WinForms.ChromiumWebBrowser..ctor (String address,
IRequestContext requestContext) in
c: \ projects \ cefsharp \ CefSharp.WinForms \ ChromiumWebBrowser.cs: page
Eye 365

in rsh.Resources.CefSharpInitBrowser..ctorO in
Z: \ vs \ csharp \ prb \ 42_prb \ nP \ 02_00 \ WinFormSUZ_00.00 \ rsh \ Resources \
CefSharpInitBrowser.cs: cTpoKa 24

Warning: registration of assembly bindings is disabled.
To enable registration of assembly binding errors,
set the registry value
[HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) at 1.
Note. Registration of assembly binding errors can
lead to some reduction in the productive ... '

Я неправильно создаю пользовательский элемент или это проблема CefSharp?
image

...