C
C#3d ago
USB

Webview2 missing from toolbox

Tried to manually add it by right clicking and choose item -> browse and add the .dll manually as shown in image but i get an error i tried pre-relases and older version everything, edge is updated on my computer and i am running vs2022 community any tips?
No description
11 Replies
leowest
leowest3d ago
all u should need to do is add the nuget build your project once and it should appear in the toolbox
leowest
leowest3d ago
No description
USB
USBOP3d ago
Yes that's what i did but never showed up. I ended up making a new project and moving my files over and that solved it. And nop matter what addon i installed from nuget it didnt work in that project
leowest
leowest3d ago
but did u build your project and it succeed because that was the only thing I had to do for it to show up in the list if it does not then u would have to reset the toolbox also are you using .net or .net framework
USB
USBOP3d ago
.net framework 4.8 it works in my new .net framework project i ddi reset toolbox and tried to manually add and make a sucess build but i have no idea why it didnt work there.
leowest
leowest2d ago
I will be honest I have never tried it on .net framework, I can only say it works on .net I will give it a try on .net framework once I get back and let u know yeah same result installed the nuget on a new .net framework winforms project rebuilt the project once I did it and open the toolbox it was there
leowest
leowest2d ago
No description
leowest
leowest2d ago
No description
USB
USBOP2d ago
Huh thanks for checking it out. Do you happen to know hgow i can pass argument (--enable-features=msWebView2EnableDraggableRegions) into webview2 inside the designer and not by code?
leowest
leowest2d ago
never done it myself but u would have to create the object your self and pass in a CoreWebView2EnvironmentOptions with the options u need https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/webview-features-flags?tabs=dotnetcsharp all the options

Did you find this page helpful?