未定义命名空间前缀'bal'

ria*_*aya 1 wix

我有这个错误.因为我把下面的代码放在Bundle.wxs中.

  <BootstrapperApplicationRef Id="WixExtendedBootstrapperApplication.Hyperlink2License">
  <bal:WixExtendedBootstrapperApplication
    ThemeFile="Resources\COTheme.xml"
    LicenseUrl="http://xxxxxx
  />
</BootstrapperApplicationRef>
Run Code Online (Sandbox Code Playgroud)

可以请任何人帮助我吗?

Yaw*_*war 10

您必须通过以下方式将命名空间引用添加到bal

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
        xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
Run Code Online (Sandbox Code Playgroud)

我想你必须在编译和构建时提供-ext WixUtilExtension.

candle.exe example.wxs -ext WixBalExtension
light.exe example.wixobj -ext WixBalExtension
Run Code Online (Sandbox Code Playgroud)