We have a VSTO addin for MS Project 2010/2013/2016/2019, where it imports/exports data from an external application and these pages are rendered in embedded Internet Explorer browser from MS Project.
Since IE support will be ending in few years, we are moving to new embedded browser control known as the Microsoft Edge WebView2 control.
I have installed Visual studio 2019, Webview2 runtime (version 101.0.1210.32 ), and our application targets .NET framework version 4.7.2.
On running the published application, although WebView2Loader.dll is present in the runtime folder but still pages are rendered in IE browser only, whereas this works fine when I copy WebView2Loader.dll into the bin folder of our build/release process and then run the application directly from Visual studio , this renders the pages using webview2.
Note: Same published application is rendering pages in webview2 on a different machine which has same version of visual studio, .net framework and webview2 runtime installed.
Anything that I am missing, please let me know. Do we need to package WebView2Loader.dll along with the published application?
Any help on this please.