Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unresolved reference in WiX

Tags:

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.

like image 622
chwi Avatar asked Jan 17 '14 11:01

chwi


1 Answers

  1. You should add reference to WixNetfxExtension.
  2. Use the property NETFRAMEWORK40FULL instead.
like image 90
leshy84 Avatar answered Nov 15 '22 10:11

leshy84