Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ChromiumWebBrowser" does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf" #2558

Closed
TriStarGod opened this issue Nov 1, 2018 · 6 comments

Comments

@TriStarGod
Copy link

TriStarGod commented Nov 1, 2018

  • What version of the product are you using?

    • What version are you using? Nuget? CI Nuget? build from a branch? If so which branch? Please include the exact version number you are using (no ambiguous statements like Latest from Nuget)
      Nuget - CefSharp.Wpf v67.0.0
  • What architecture x86 or x64?
    x64

  • On what operating system?
    Win10

  • Are you using WinForms, WPF or OffScreen?
    WPF

  • What steps will reproduce the problem?

    • Please provide detailed information here, enough for someone else to reproduce your problem.
    • Please no binary (zip, etc) links, fork the MinimalExample and push your changes to GitHub. (Alternatively use a code sharing service list Gist or Pastebin).
      Setup project for x64
      Installed Cefsharp.WPF via Package Manager
      Inserted xmlns:cefSharp="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
      and <cefSharp:ChromiumWebBrowser Grid.ColumnSpan="2" Grid.Row="2" Address="https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions" />
      as outlined in guide within a MahApps MetroWindow. Also confirmed same error even in standard wpf project.
  • What is the expected output? What do you see instead?
    Expected to display webpage.
    Instead outputs error message:

  1. The name "ChromiumWebBrowser" does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
  2. Displays designer warning Invalid Markup
  3. Does not open / display webpage when viewed.
@welcome
Copy link

welcome bot commented Nov 1, 2018

Welcome! We prefer to keep this issue track just for bug reports. If you have a question or need help with something I'd ask that you self close this issue and have a read over https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md it contains background information, details on where to ask your questions Gitter or StackOverflow) should be used.

If you're reporting a bug, you must complete the bug report template see https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md#bug-report. Please make sure you provide enough detail that someone else can reproduce the issue you are experiencing.

It's also important to remember that CefSharp is just a wrapper around the Chromium Embedded Framework(CEF), a lot of questions people have aren't actually CefSharp specific, they're generic to CEF and for those CEF has it's own support forum at http://magpcss.org/ceforum/index.php and issue tracker at https://bitbucket.org/chromiumembedded/cef

@amaitland
Copy link
Member

Issue tracker is for bug reports only, thank you!

If you have a question, ask it on Gitter, StackOverflow or use ceforum (for questions specific to CEF).

@amaitland
Copy link
Member

See https://github.com/cefsharp/CefSharp.MinimalExample for a working example

@amaitland
Copy link
Member

Also follow https://github.com/cefsharp/CefSharp/blob/cefsharp/69/NuGet/Readme.txt#L12

and if your using VS2017 make sure your using the latest version (15.8.8 at time of writing), MS have been doing some tinkering lately in some of the recent versions.

If you require further assistance please use one of the options linked above.

@j-loriault
Copy link

j-loriault commented Dec 2, 2020

how is this not a bug ? its saying that it doesn't exist? sounds like a bug to me. stop being lazy and pawning it off and fix the issue.
and as a matter of fact your "minimal" example also throws the same error.

@amaitland
Copy link
Member

stop being lazy and pawning it off and fix the issue.

@SolariceMedia The packages work as expected for older versions of visual studio, I've attempted to get this resolved with Microsoft and they're said the behaviour is now by design see dotnet/project-system#4158

If you migrate to the package reference Nuget implementation initial build works as expected. All you have to do with the older packages.config implementation is close and reopen the solution as listed in the post installation notes.

If you'd like to sponsor my time in overhauling the packages to change this then I'm happy to discuss that. As for lazy I've spent literally thousands of hours over almost 6 1/2 years supporting and maintaining this project. You've paid nothing, contributed nothing and here you are thanking me for my efforts with borderline abuse....thanks 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants