qosaforever.blogg.se

Webview2 clear cache
Webview2 clear cache







webView2Environment = await Files (x86)\Microsoft\Edge Dev\Application\90.0.810.1", tempWebCacheDir, options) WebView2Environment = await tempWebCacheDir, options) TempWebCacheDir = System.IO.Path.Combine(tempWebCacheDir, ().ToString("N")) TempWebCacheDir = System.IO.Path.GetTempPath() get fully-qualified path to user's temp folder If (String.IsNullOrEmpty(tempWebCacheDir)) InitializeAsync public async Task InitializeAsync(WebView2 wv, string webCacheDir = "")ĬoreWebView2EnvironmentOptions options = null ĬoreWebView2Environment webView2Environment = null If it's not specified, it uses the user's temp folder as the location for the userDataFolder.

webview2 clear cache

Note: This option allows one to specify the userDataFolder. String installPath = webView2Environment = await CoreWebView2Environment.CreateAsync(installPath) Īwait browserControl.EnsureCoreWebView2Async(webView2Environment) InitializeAsync public async Task InitializeAsync()

webview2 clear cache

Note: When using expand in the above command, the destination folder must already exist and the name must not end with '\'.Ĭ:\Projects\WpfTestFixedVersion\WpfTestFixedVersion\bin\DebugĬ:\Projects\WpfTestFixedVersion\WpfTestFixedVersion\bin\Debug\.88.0.705.81.x86

webview2 clear cache

Output folder: C:\Projects\WpfTestFixedVersion\WpfTestFixedVersion\bin\DebugĬmd window C:\Users\Test\Downloads> expand .88.0.705.81.x86.cab -F:* "C:\Projects\WpfTestFixedVersion\WpfTestFixedVersion\bin\Debug".Project folder: C:\Projects\WpfTestFixedVersion.I've tested the following, which seems to work:









Webview2 clear cache