AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Can I choose whether to use WebView2

Open howzew opened this issue 2 years ago • 2 comments

After updating to 1.7.3, I found that webview2 was used by default. After compiling my program, I found that there was an "runtimes" folder in the debug directory, which contained "webview2loader.dll" files of different platforms. At the same time, there were "microsoft.web.webview2.core.dll", "microsoft.web.webview2.winforms.dll" and "microsoft.web.webview2.wpf.dll" files in the debug directory, This brings some trouble to my software release, because I used to pack it into a single file, so I have to pack the "webview2loader.dll" file in the "runtimes" folder at the same time, resulting in a larger file size. Can I choose to still use the past WebBrowser method?

howzew avatar Jul 13 '22 03:07 howzew

It is not possible even if I provide a flag to use old one, it will still reference those DLLs. You have to use older version (1.7.0) if you want to use old webbrowser control without those DLLs or you can fork the project and remove WebView2 altogether.

ravibpatel avatar Jul 13 '22 06:07 ravibpatel

It is not possible even if I provide a flag to use old one, it will still reference those DLLs. You have to use older version (1.7.0) if you want to use old webbrowser control without those DLLs or you can fork the project and remove WebView2 altogether.

Thank you

howzew avatar Jul 13 '22 08:07 howzew