C# /WindowsForm
WebView2 Fixed 버젼 이용 시에 참조 부분
Hwoarang757
2022. 5. 29. 15:35
// msedgewebview2.exe 가 포함 되어 있는 디렉터리를 이용하여 참조 시에
// 아래와 같이 지정 하여 사용 하였습니다.
this.webView2.CreationProperties = new Microsoft.Web.WebView2.WinForms.CoreWebView2CreationProperties
{
BrowserExecutableFolder = string.Format(@"{0}\webView2", Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)), // Webview2 관련 Fixed 구성 요소 디렉터리 위치
Language="en-US"
};
await webView2.EnsureCoreWebView2Async();