WebView2 执行时不显示网页,try catch之后 报错找不到 WebView2Loader.dll
WebView2 版本是1.0.1072.54
但是我升版本至1.0.1108.44 时 又不报错了。由于项目需要1.0.1072.54
winfrom环境下
//这句话报错的
if (webView21.CoreWebView2==null)
{
await webView21.EnsureCoreWebView2Async(null);
webView21.Source = new Uri(url);//直接传网页
}
Debug 文件夹下是有Runtime文件的 AnyCpu
不知道大家有没有遇到这个问题,是不是我少装了什么
文件下是有这个DLL的 WebView2Loader.dll