We are using webview2 to launch browser window.
At design time webview2 is working fine and we see browser window, but at runtime webview2 is not getting initialized. For the design time only x64 Webview2Loader.dll working, but x64 webview2Loader.dll is not working for runtime, I manually copied x86 Webview2Loader.dll into nuget folder - still it is throwing same exception and not able to load Webview2Loader.dll.
.NET Framework = .net5
Webview2 version = 1.0.1072.54
"message": "System.DllNotFoundException: Unable to load DLL 'WebView2Loader.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2EnvironmentWithOptions(String browserExecutableFolder, String userDataFolder, ICoreWebView2EnvironmentOptions options, ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler environment_created_handler)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateAsync(String browserExecutableFolder, String userDataFolder, CoreWebView2EnvironmentOptions options)
at Microsoft.Web.WebView2.Wpf.WebView2.<>c__DisplayClass27_0.<<EnsureCoreWebView2Async>g__Init|0>d.MoveNext()