As the error message suggests, MSBuild is trying to evaluate $(var.NovaWeb)
as an MSBuild variable and failing. I suspect the heat task requires you to
pass the name of variable. Try just "NovaWeb" or possibly "var.NovaWeb"


-----Original Message-----
From: Rajeshkannan Krishnamoorthy [mailto:rajeshkannan.kr...@gmail.com] 
Sent: 18 July 2012 07:02
To: wix-users
Subject: [WiX-users] error MSB4184: The expression """.NovaWeb" cannot be
evaluated. Method 'System.String.NovaWeb' not found.

Hi,

When i use Heat directory in MSBuild task, I have passed the preprocessor
variable. But when compliation the below error occured.
error MSB4184: The expression """.NovaWeb" cannot be evaluated. Method
'System.String.NovaWeb' not found.

I tried to find out the solution in internet, but nothing solve my problem.

Here my code

<Target Name="BeforeBuild">
    <MSBuild Projects="%(ProjectReference.FullPath)" Targets="Package"
Properties="Configuration=$(Configuration);Platform=AnyCPU;WixValues=$([MSBui
ld]::Escape($(WixValues)))"
Condition="'%(ProjectReference.WebProject)'=='True'" />
    <PropertyGroup>

<DefineConstants>NovaWeb=..\..\Tenix.Nova.Web\obj\$(Configuration)\Package\Pa
ckageTmp\;

NovaServices=..\..\Services\ServiceHost\Tenix.Nova.Services\obj\$(Configurati
on)\Package\PackageTmp\
      </DefineConstants>
    </PropertyGroup>
    <HeatDirectory OutputFile="%(ProjectReference.Filename).wxs"
Directory="%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Conf
iguration)\Package\PackageTmp\"
DirectoryRefId="INSTALLLOCATION"
ComponentGroupName="%(ProjectReference.Filename)_Project"
AutogenerateGuids="true" SuppressCom="true" SuppressFragments="true"
SuppressRegistry="true" SuppressRootDirectory="true"
ToolPath="$(WixToolPath)"
Condition="'%(ProjectReference.WebProject)'=='True'"
PreprocessorVariable="$(var.NovaWeb)" />
    <HeatDirectory OutputFile="%(ProjectReference.Filename).wxs"
Directory="%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Conf
iguration)\Package\PackageTmp\"
DirectoryRefId="INSTALLLOCATION"
ComponentGroupName="%(ProjectReference.Filename)_Project"
AutogenerateGuids="true" SuppressCom="true" SuppressFragments="true"
SuppressRegistry="true" SuppressRootDirectory="true"
ToolPath="$(WixToolPath)"
Condition="'%(ProjectReference.ServiceProject)'=='True'"
PreprocessorVariable="$(var.NovaServices)" />
  </Target>

Can you please help me to fix this problem.
Advance thanks for help
-- 

Regards
Rajesh Krishnamoorthy
-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to