Extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.BalExtension' uses the same preprocessor variable prefix, 'bal', as previously loaded extension

Sep 25, 2013 at 2:30 PM
Edited Sep 25, 2013 at 2:30 PM
Hello,

I was using the Standard BA and now am trying out this Extended BA, but I'm getting the error below when trying to rebuild.

I removed the reference to the SBA and added a reference to the EBA but it is still complaining about 'same preprocessor variable prefix as previously loaded extension'.

My Bundle.wxs looks like this and is the only place where the bal prefix is declared:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
Error   12
The extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.BalExtension' uses the same preprocessor variable prefix, 'bal', as previously loaded extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.BalPreprocessorExtension'.  Please remove one of the extensions or rename the prefix to avoid the collision.  candle.exe  0   1   Bootstrapper
Sep 25, 2013 at 2:33 PM
I unloaded my project and edited the .wixproj file to find duplicate entries afterall:
    <WixExtension Include="WixBalExtensionExt">
      <HintPath>..\BootstrapperCustom\Dll\WixBalExtensionExt.dll</HintPath>
      <Name>WixBalExtensionExt</Name>
    </WixExtension>
    <WixExtension Include="WixBalExtensionExt">
      <HintPath>..\..\..\..\..\..\..\Downloads\WixBalExtensionExt\build\WixBalExtensionExt.dll</HintPath>
      <Name>WixBalExtensionExt</Name>
    </WixExtension>
Removing the incorrect entry resolved the issue.