chwi
chwi

Reputation: 2802

Unresolved reference in WiX

I need to check for .NET Framework before installing. I've added this

<PropertyRef Id="NETFRAMEWORK40" />
        <Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run this installer again. Contact support at [email protected] if you have further issues.">
            <![CDATA[Installed OR NETFRAMEWORK40]]>
        </Condition>

The start of the file contains

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
    xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">

and on linking I get the error

error LGHT0094 : Unresolved reference to symbol 'Property:NETFRAMEWORK40' in section 'Product:*'.

Is there a specific place where I should insert these lines? I tried most places I can think of.

Upvotes: 5

Views: 3938

Answers (1)

leshy84
leshy84

Reputation: 700

  1. You should add reference to WixNetfxExtension.
  2. Use the property NETFRAMEWORK40FULL instead.

Upvotes: 7

Related Questions