名称ChromiumWebBrowser在名称空间"clr-namespace:CefSharp.Wpf; assembly = CefSharp.Wpf"中不存在. [英] The name ChromiumWebBrowser does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
问题描述
我遵循了这个链接来实现CefSharp应用程序.
I had followed this link to implement CefSharp applicaton.
但是我在编码MainWindow.xaml
时卡住了.
But I have stuck while coding MainWindow.xaml
.
Blend for VS 2015说,
Blend for VS 2015 said,
名称空间ChromiumWebBrowser在名称空间"clr-namespace:CefSharp.Wpf; assembly = CefSharp.Wpf"中不存在
The name ChromiumWebBrowser does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
但是我安装了带有NuGet软件包管理器的CefSharp.Common和CefSharp.Wpf v51.0.0,cef.redist.x64和cef.redist.x86 v3.2704.1432.
But I'm installed CefSharp.Common and CefSharp.Wpf v51.0.0, cef.redist.x64 and cef.redist.x86 v3.2704.1432 with NuGet Package Manager.
我是开发C#的新手,所以我不知道如何解决此问题.请帮助我解决此错误.
I'm new on developing C# so I don't know how to solve this problem. Please help me to solve this error.
这是我的MainWindow.xaml
<Window x:Class="StocktalkBrowser.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:StocktalkBrowser"
xmlns:cefSharp="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<cefSharp:ChromiumWebBrowser Grid.Row="0" Address="https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions" />
</Grid>
</Window>
推荐答案
我刚刚尝试了链接,并且正如我在注释中提到的那样,它可以毫无问题地进行编译.
I just tried the link, and as I mentioned in the comments it compiles without any problem.
可以忽略.
而且预览也不可用,我学会了使用它.
And the preview is not available as well, I learned to live with it.
编译时没有错误
然后程序启动.没问题
And the program starts up. No problem
这篇关于名称ChromiumWebBrowser在名称空间"clr-namespace:CefSharp.Wpf; assembly = CefSharp.Wpf"中不存在.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!