未解析的外部符号_CreateCoreWebView2EnvironmentWithOptions

问题描述 投票:0回答:0

我的项目在visual studio 2019中构建成功。现在要求我在visual studio 2022中构建。

对于这个项目,我需要 webview2 库; 我按照 https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/win32 中的建议使用 NuGet 安装了 webview2 和 windows 实现库。这些是我在 VS19 上构建时遵循的相同步骤。我什至也在 vs2022 上安装了相同的版本。

现在,我在构建项目时遇到 vs2022 上的链接器错误。

unresolved external symbol _CreateCoreWebView2EnvironmentWithOptions@16 referenced in function blahblah

我确保 webview2Loader.dll 存在。我通过从 vs19 工作文件夹复制 webview2Loader.dll 来尝试一下。

还使用 dumpbin.exe 我确保错误的方法是从 webviewLoader.dll 导出的

不确定还可以尝试什么?有人知道吗?

microsoft-edge visual-studio-2022 webview2
© www.soinside.com 2019 - 2024. All rights reserved.