Home

Help with understanding the latest WebView2

A while back I make a post where I shared an updated process to help with dumping text to a auxiliary panel using WebView2. I don't use it for all my modules, but it did have a specific use case. However, this use case isn't something i do all the time and it's been several weeks since I last used it. Microsoft, in their infinite wisdom, has decided to update the libraries in the Nuget package Microsoft.Web.WebView2 in a way that stops the base module I shared from working. For reference, I've attached a link to the module in question (but I don't know if it shares everything including Nuget package references).

https://share.linqpad.net/x47bgs3p.linq

I've searched around, but I'm either too tired at the moment to correctly formulate appropriate search terms or no one is bringing this up due to an uncommon use case. Looking for help in understanding how to get this code working again. Please!

Comments

  • They've renamed the lib folder to lib_manual to prevent WebView2 from working in LINQPad. You can work around this by downloading an older version of the NuGet package (e.g., 1.0.2151.40).

  • Wow! Why would they do that?

    I've checked that latest working version is 1.0.2592.51.
    Will it be fixed in the future?

  • edited December 6

    I've managed to trick LINQPad into working with the latest WebView2 package by changing content of C:\Users\bbr\AppData\Local\LINQPad\NuGet.NetCore.PerfCache\Microsoft.Web.WebView2 1.0.2903.40 RS802 9.0.0.0 win10-x64 9.0.0.txt to:

    413
    lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll;lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.WinForms.dll;lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll
    lib_manual\net5.0-windows10.0.17763.0\Microsoft.Web.WebView2.Wpf.dll;lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.WinForms.dll;lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll
    runtimes\win-x64\native\WebView2Loader.dll
    

    Originally it was:

    128
    lib\Microsoft.Web.WebView2.Core.winmd
    lib\Microsoft.Web.WebView2.Core.winmd
    runtimes\win-x64\native\WebView2Loader.dll
    

    Could generation of this file be improved to also use lib_manual?

Sign In or Register to comment.