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

webview2 need .net 4.7.1 to run and unable on .net 4.5 #1667

Closed
shengwen2000 opened this issue Aug 20, 2021 · 1 comment
Closed

webview2 need .net 4.7.1 to run and unable on .net 4.5 #1667

shengwen2000 opened this issue Aug 20, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@shengwen2000
Copy link

Description

when call EnsureCoreWebView2Async() throw a exception "Could not load type ''System.Runtime.InteropServices.RuntimeInformation' from assembly 'mscorlib, version=4.0.0.0"

System.Runtime.InteropServices.RuntimeInformation require .net 4.7.1 above

Version
SDK: https://www.nuget.org/packages/Microsoft.Web.WebView2/1.0.902.49
Runtime: 92.0.902.73
Framework: WinForms
OS: Win7

Repro Steps

var opt = new CoreWebView2EnvironmentOptions();
var env = await CoreWebView2Environment.CreateAsync(null, null, opt);
await this.webView21.EnsureCoreWebView2Async(env);
this.webView21.Source = new Uri("https://www.google.com");

Screenshots

Additional context

@shengwen2000 shengwen2000 added the bug Something isn't working label Aug 20, 2021
@champnic
Copy link
Member

hey @shengwen2000, thanks for the bug report! This is a known issue we're working on here: #946.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants