HOW TO
After adding references to ArcGIS Pro’s CefSharp assemblies to an add-in and adding a reference to the ArcGIS Pro ChromiumWebBrowser control to the add-in UI xaml, for example, on a pane or dockpane, as shown in the following image, a compiler error is returned stating that the ChromiumWebBrowser control cannot be found in the ArcGIS.Desktop.Framework.Controls namespace in the ArcGIS.Desktop.Framework assembly.
Moreover, additional warning messages may also be returned, and the UI xaml can no longer be viewed in the Visual Studio Designer, as shown below.
When using CefSharp, to resolve the compiler issue with the Visual Studio designer, the add-in platform target must be set to x64, as follows.
Note: If your control constructor InitializeComponent() call (within your user control .xaml.cs code behind file) throws a System.Windows.Markup.XamlParseException with an inner exception: “FileNotFoundException: CefSettings BrowserSubprocessPath not found.” check the Copy Local setting on your CefSharp assembly references. Copy Local must be set to false.
Please consult ProConcepts Framework, ChromiumWebBrowser for more information.
Get help from ArcGIS experts
Download the Esri Support App