Wednesday, January 15, 2014

WiX & MSBuild - Adding WixExtension To Fix LGHT0094

I recently ran into a problem with compiling a WiX project using MSBuild. Here's the error message:

error LGHT0094: Unresolved reference to symbol 'WixUI:WixUI_Minimal' in section 'Product:*'. [C:\Dir\Test.wixproj]


To fix this specific error, the MSBuild file needs the following element (as a child of the Project element):

<ItemGroup>
    <WixExtension Include='WixUIExtension' />
</ItemGroup>

Adding this element causes the WiX 'candle' build step to include the extension that you need. You need to change the Include value if you require a different extension.

If you receive this error when building a WiX project using Visual Studio or the 'light' command-line tool, follow the Using Built-in WixUI Dialog Sets tutorial included in the official WiX documentation.

(tested with WiX v3.8)

No comments:

Post a Comment