You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Scenario (on net472): Library project (ex. WebView2LoaderLibrary) references WebView2 code. App project (ex. WebView2LoaderRepro) references the library project as a DLL or NuGet package. Exception is thrown when WebView2Loader.dll cannot be loaded.
When the library project is referenced as a project, included in solution, everything works. WebView2Loader.dll is included in the /bin/(x86/x64) folders. Similarly works for Net Core and Net5 apps; WebView2Loader.dll is included in /runtimes/win-x86/native folder.
Version
SDK: Microsoft.Web.WebView2.1.0.824-prerelease
Runtime: 89.0.774.54 (Installed via Edge Beta)
Framework: net472
OS: Win 10 Enterprise, 20H2, 19042.867
Run WebView2LoaderRepro console app. It references WebView2LoaderLibrary as a DLL reference, not a project reference.
Error:
System.DllNotFoundException: Unable to load DLL 'WebView2Loader.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableCoreWebView2BrowserVersionString(String browserExecutableFolder, String& versionInfo)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableBrowserVersionString(String browserExecutableFolder)
at WebView2LoaderLibrary.WebView2Helper.GetWebView2Version() in C:\\repos\\WebView2LoaderRepro\\WebView2LoaderLibrary\\WebView2Helper.cs:line 7
at WebView2LoaderRepro.Program.Main(String[] args) in C:\\repos\\WebView2LoaderRepro\\WebView2LoaderRepro\\Program.cs:line 13
The text was updated successfully, but these errors were encountered:
@pmaytak Thanks for the bug report! Can you see if the info/discussion in #730 is helpful? It seems like it might be the same issue. If it's not, please let me know and I can reopen this issue separately.
Description
Scenario (on net472): Library project (ex. WebView2LoaderLibrary) references WebView2 code. App project (ex. WebView2LoaderRepro) references the library project as a DLL or NuGet package. Exception is thrown when WebView2Loader.dll cannot be loaded.
When the library project is referenced as a project, included in solution, everything works. WebView2Loader.dll is included in the /bin/(x86/x64) folders. Similarly works for Net Core and Net5 apps; WebView2Loader.dll is included in /runtimes/win-x86/native folder.
Version
SDK: Microsoft.Web.WebView2.1.0.824-prerelease
Runtime: 89.0.774.54 (Installed via Edge Beta)
Framework: net472
OS: Win 10 Enterprise, 20H2, 19042.867
Repro Steps
WebView2LoaderRepro.zip
The text was updated successfully, but these errors were encountered: