Using browser embedded custom user control as reference dll in another main WPF project #4717
Replies: 1 comment
-
I figured this out - I also need to add cefsharp dependencies in the target project - but I'm not sure if this is correct?! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've a WPF project where I want to use a cefsharp browser embedded - custom user control to plot few data using JS. I'm facing issues in such architecture.
To test this, I'm following a standard approach as follow -
Building a bare minimum WPF project with a custom user control which wraps a ChromiumWebBrowser in xaml as class lib
It's .csproj file is as below,
xaml for the custom user control is as below,
I'm hosting this .dll in another WPF windows app. Following is the .csproj file
dll use in the main WPF app xaml is as below,
When I run the host WPF app, am getting following exception,
System.Windows.Markup.XamlParseException: 'Could not load file or assembly 'CefSharp.Wpf, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.'
I'm using CefSharp.Wpf.NETCore (121.3.70) in custom user control project.
I've used recommended settings regarding
RuntimeIdentifier
orAnyCPU
.Can someone help me in this? How should I address this?
Thanks in anticipation.
Beta Was this translation helpful? Give feedback.
All reactions