使用WixDotNetCoreBootstrapperApplicationHost无法启动x64自定义.NET 6 BA
WIX3/.NET4.8迁移至WIX4/.NET6自定义BA运行异常
我正在将基于WIX3/.NET4.8的安装程序迁移到WIX4/.NET6环境,当前尝试在bundle中运行已转换为.NET6的自定义引导程序应用(BA)。
当BA设置为win-x64架构,且构建、发布均采用自包含模式,输出为dll时,出现以下错误:
[1E3C:08BC][2023-02-08T10:23:02]e000: error from hostfxr: You must install or update .NET to run this application. App: C:\Windows\TEMP\{8521A191-8C06-4ED8-880A-4FE878955375}\.cr\visionCATS.exe Architecture: x64 [1E3C:08BC][2023-02-08T10:23:02]e000: error from hostfxr: Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64) [1E3C:08BC][2023-02-08T10:23:02]e000: error from hostfxr: .NET location: C:\Windows\TEMP\{414A222D-3B83-4894-8FC0-5AD87CF921E3}\.ba\ [1E3C:08BC][2023-02-08T10:23:02]e000: error from hostfxr: No frameworks were found. [1E3C:08BC][2023-02-08T10:23:02]e000: error from hostfxr: Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win10-x64 [1E3C:08BC][2023-02-08T10:23:02]e000: Error 0x80008096: HostfxrInitializeForApp failed [1E3C:08BC][2023-02-08T10:23:02]e000: Error 0x80008096: Failed to initialize hostfxr. [1E3C:08BC][2023-02-08T10:23:02]e000: Error 0x80008096: The self-contained .NET Core runtime failed to load. This is an unrecoverable error. [1E3C:08BC][2023-02-08T10:23:02]i000: Loading prerequisite bootstrapper application because .NET Core host could not be loaded, error: 0x80008096.
我用模拟WIX测试程序可以正常调用该x64版本的BA dll,在未安装.NET6运行时的虚拟机上也能正常显示UI,但唯独在bundle中无法运行。
内容的提问来源于stack exchange,提问作者PBY
相关产品推荐
相关产品推荐

