The preprocessor is single pass today so this does not work.

On Wed, Oct 10, 2012 at 2:27 AM, <ferdi.oeztu...@accenture.com> wrote:

> How can I resolve $(var.Feature) as "ProjectName" part of
> $(var.<ProjectName>.TargetPath) in the following example?
>
> VS error:
> Error  157    Ill-formed preprocessor function
> '$var.($(var.Feature))Module.TargetPath'.  Functions must have a prefix
> (like 'fun.'), a name at least 1 character long, and matching opening and
> closing parentheses.
>
>
>              <!-- Features -->
>              <Feature Id="Complete" Title="Complete" Level="1">
>                     <?foreach Feature in $(var.Package.FeatureList)?>
>                            <Feature Id="$(var.Feature)"
> Title="$(var.Feature)" Level="1">
>                                   <MergeRef Id="$(var.Feature)Module" />
>                            </Feature>
>                     <?endforeach?>
>              </Feature>
>
>              <!-- Directories -->
>              <Directory Id="TARGETDIR" Name="SourceDir">
>                     <Directory Id="ProgramFilesFolder">
>                            <Directory Id="INSTALLDIR" Name="$(
> var.Package.Name)">
>           <?foreach Feature in $(var.Package.FeatureList)?>
>             <Merge Id="$(var.Feature)Module"
> Language="$(var.Package.Language)"
> src="$(var.($(var.Feature))Module.TargetPath)" DiskId="1"/>
>           <?endforeach?>
>       </Directory>
>                     </Directory>
>              <Directory Id="SystemFolder" Name="SystemFolder"/>
>              </Directory>
>
> THXs,
> Ferdi
>
> ________________________________
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the email by you is prohibited.
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
virtually,

   Rob Mensching
   http://RobMensching.com LLC
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to