I have downloaded and attached the FixedVersionRuntime.88.0.705.81.x64 for WebView2 and attached it to my project.
Using the following it should load the necessary page but when loading the WebView is not crashing but no page is loaded:
public async Task InitializeAsync() { string installPath = @"C:\Program Files (x86)\WebView2Runtime\Microsoft.WebView2.FixedVersionRuntime.88.0.705.81.x64\"; var webView2Environment = await CoreWebView2Environment.CreateAsync(installPath); await browserControl.EnsureCoreWebView2Async(webView2Environment); }
I am then setting the source after this:
await InitializeAsync(); me.Source = new Uri(((MainViewModel)this.DataContext).Config.DefaultURL);
When using the evergreen installer it worked fine but when moving to the fixed version it seems to not load correctly when deployed.
https://stackoverflow.com/questions/66500241/webview2-site-not-loading March 06, 2021 at 06:09AM
没有评论:
发表评论