c# - 错误 0x8007000b : Failed to create the managed bootstrapper application

标签 c# user-interface wix bootstrapper

我希望你一切都好:)

所以,我正在做一些关于 Burn、Bootstrapper 工具的 Wix 教程。

我尝试构建自己的 UI(按照本教程),当我想运行它时,它崩溃了。

我已将其包含到我的 AsseblyInfo.cs 中

[assembly: BootstrapperApplication(
    typeof(CustomBootstrapperApplication))]

这是我的 BootstrapperCore.config

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->


<configuration>
    <configSections>
        <sectionGroup name="wix.bootstrapper" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore">
            <section name="host" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection, BootstrapperCore" />
        </sectionGroup>
    </configSections>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" />
        <supportedRuntime version="v2.0.50727" />
    </startup>
    <wix.bootstrapper>
        <!-- Example only. Use only if the startup/supportedRuntime above cannot discern supported frameworks. -->
        <!--
        <supportedFramework version="v4\Client" />
        <supportedFramework version="v3.5" />
        <supportedFramework version="v3.0" />
        -->

        <!-- Example only. Replace the host/@assemblyName attribute with assembly that implements BootstrapperApplication. -->
        <host assemblyName="CustomBA" />
    </wix.bootstrapper>
</configuration>

我的库类称为 CustomBA。

一切都可以正常编译,但是当尝试运行 *.exe 输出文件时,它不起作用。

查看日志后我发现了这个......

[5364:3710][2020-07-22T13:53:50]i000: Loading managed bootstrapper application.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed to create the managed bootstrapper application.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed to create UX.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed to load UX.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed while running 

我已经挣扎了好几天了。我可以看到这个问题是多年前出现的,但没有人为新版本的 netframework 4.8 和 wix 3.11 提供解决方案(我认为这是问题所在,因为我正在关注的教程使用 NetF 3.5 和 Wix 3.6 我认为 https://learning.oreilly.com/library/view/wix-36-a/9781782160427/ch16s07.html ).这就是我要写一篇新文章的原因。

我希望有人能帮我解决这个问题。亲切的问候:)

最佳答案

所以,就像我说的,我也看到过,我的意思是太多的帖子在没有解决方案的情况下寻求帮助。然而,一整天后,我发现 UI MVVM 库类和 Bootstrap 应用程序必须使用 Release x86 进行编译。我正在用 x64 编译,因为我的 msi 是用这样的架构构建的。

希望对其他人有帮助。

关于c# - 错误 0x8007000b : Failed to create the managed bootstrapper application,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63034290/

相关文章:

matlab - 如何取消选择uitable中的单元格/如何禁用单元格选择突出显示?

wix - 在wix安装过程中注册一个ole服务器exe

WiX - 验证不是安装目录的路径?

c# - 如何存储程序设置?

c# - 使用 SignalR 显示在线用户列表

java - 是否可以限制TextField(不是JTextField)中输入的长度

wix - 有没有办法加速 WiX 构建?

c# - 如何在 Aspose 中设置单元格格式

c# - EF Core 规范模式添加所有列以使用自定义规范对数据进行排序

java - 是否可以指向特定的 JPanel