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
WebView2Loader.dll is copied into Debug\x86\ and Debug\x64\ even when the output directory of the project is just set to Debug without the platform. In earlier versions WebView2Loader was copied into the output directory (Debug) correctly.
Between this and #506 we are not able to upgrade from version 1.0.622.22 which was the last version that worked for MFC projects.
Version
SDK: 1.0.721-prerelease
Runtime: 88.0.705.50
Framework: MFC
OS: Win10
Microsoft Visual Studio Community 2019 Version 16.8.3
Repro Steps
Create new MFC project in Visual Studio (I just accepted all defaults)
Add Microsoft.Web.WebView2 and Microsoft.Windows.ImplementationLibrary packages from Nuget
Add code to create web view somewhere (e.g. OnCreate() of CMainFrame)
Run
You get an error that WebView2Loader.dll cannot be found.
Looking at the filesystem the executable (MFCApplication2exe) is in MFCApplication2/Debug but WebView2Loader.dll is in MFCApplication2\Debug\x86.
Seems like the either the build files should copy WebView2.dll to the output directory without the platform (x86...) or when running the dll search path should include the path with the platform.
Here is a snippet of MSBuild log (verbose) for setting target path for WebView2Loader.dll:
Description
WebView2Loader.dll is copied into Debug\x86\ and Debug\x64\ even when the output directory of the project is just set to Debug without the platform. In earlier versions WebView2Loader was copied into the output directory (Debug) correctly.
Between this and #506 we are not able to upgrade from version 1.0.622.22 which was the last version that worked for MFC projects.
Version
SDK: 1.0.721-prerelease
Runtime: 88.0.705.50
Framework: MFC
OS: Win10
Microsoft Visual Studio Community 2019 Version 16.8.3
Repro Steps
You get an error that WebView2Loader.dll cannot be found.
Looking at the filesystem the executable (MFCApplication2exe) is in MFCApplication2/Debug but WebView2Loader.dll is in MFCApplication2\Debug\x86.
Seems like the either the build files should copy WebView2.dll to the output directory without the platform (x86...) or when running the dll search path should include the path with the platform.
Here is a snippet of MSBuild log (verbose) for setting target path for WebView2Loader.dll:
AB#31499850
The text was updated successfully, but these errors were encountered: