Hi,

Am using WiX3 in VS2008.  v. 3.0.3725.0

I have a really simple project.  With a single file entry (the rest of the
file is almost the default example):

      <File Id="f1" Name="$(var.DataEngineDebug.TargetFileName)"
Source="$(var.DataEngineDebug.TargetPath)" DiskId="1" />

It gives this error when I try and compile it:

        error CNDL0150: Undefined preprocessor variable
'$(var.DataEngineDebug.TargetFileName)'.

To me this means it doesn't have a definition of the 'DataEngineDebug' bit,
but I followed the instructions and added that project through the
References section in the GUI.  It shows in the project file:


  <ItemGroup>
    <ProjectReference Include="..\DataEngineDebug\DataEngineDebug.vcproj">
      <Name>DataEngineDebug</Name>
      <Project>{XXX-whatever-guid}</Project>
      <Private>True</Private>
    </ProjectReference>
  </ItemGroup>


When the compilation takes place, the output shows:


Target "Compile" in project "MyProjWiXSetup.wixproj"
        Building target "Compile" completely.
        Output file "obj\Release\MyProjWiXSetup.wixobj" does not exist.
        Task "Candle"
                Command:
                C:\Program Files\Windows Installer XML v3\bin\candle.exe
-d"DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\\"
-dSolutionDir=C:\_cvs\MyProj\ -dSolutionExt=.sln
-dSolutionFileName=MyProj.sln -dSolutionName=MyProj
-dSolutionPath=C:\_cvs\MyProj\MyProj.sln -out
obj\Release\MyProjWiXSetup.wixobj MyProjWiXSetup.wxs
                Microsoft (R) Windows Installer Xml Compiler version
3.0.3725.0
                Copyright (C) Microsoft Corporation 2003. All rights
reserved.
                MyProjWiXSetup.wxs
C:\_cvs\MyProj\MyProjWiXSetup\MyProjWiXSetup.wxs(10,0): error CNDL0150:
Undefined preprocessor variable '$(var.DataEngineDebug.TargetFileName)'.
                The command exited with code 150.


As I cannot see it passing in during the candle operation mentioning either
the Wix project, or the DataEngineDebug project, I can imagine that it would
fail... but what am I doing wrong?  I thought adding the references to other
projects would enable the preprocessor to correctly use the projects - that
is what the help file says.

Thanks,

RW


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to