Search code examples
wpf.net-corewebview2

How to add Microsoft Edge WebView2 Runtime as prerequisite


I have WPF .Net core 3.1 Desktop Application and trying to Add MicrosoftEdgeWebView2Runtime as prerequisite with Clickonce but I'm not able to find in prerequisite list.

prerequisite list

Thanks in Advance. Ravi V.


Solution

  • Try to follow this guide.

    I think that in your case you have download WebView2 installer and place it under, either Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\, or <VS Install Dir>\MSBuild\Microsoft\VisualStudio\BootstrapperPackages\ together with product.xml file where you define how WebView2 should be installed.