最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How can I include Webview2 in the setup.exe or MSI with Microsoft Visual Studio installer? - Stack Overflow

programmeradmin1浏览0评论

I'm using some code in VB (Visual Studio 2022) that's using Webview2 on my desktop. I made a setup file to install it on my laptop. Unfortunatly Webview2 is not included in the setup file, and the code works fine till I want to open a page. How can I include Webview2 in the setupfiles so everything works right from the start?

In the solution explorer I find under Dependencies, Under Packages Microsoft.Web.Webview2 (1.0.1054.31) Under Setup1 (Visual Studio Installer) I find Detected Dependecies = Empty.

I found some warnings while creating the MSI-file

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'

Those were all the warnings. Build: 1 succeeded 0 failed ...

发布评论

评论列表(0)

  1. 暂无评论