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=$([MSBuild]::Escape($(WixValues)))" Condition="'%(ProjectReference.WebProject)'=='True'" /> <PropertyGroup> <DefineConstants>NovaWeb=..\..\Tenix.Nova.Web\obj\$(Configuration)\Package\PackageTmp\; NovaServices=..\..\Services\ServiceHost\Tenix.Nova.Services\obj\$(Configuration)\Package\PackageTmp\ </DefineConstants> </PropertyGroup> <HeatDirectory OutputFile="%(ProjectReference.Filename).wxs" Directory="%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\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\$(Configuration)\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