Hi,

I am using Wix 3.6 with Visual Studio 2012. I am using this section in wixproj 
file to harvest required files from ASP.NET MVC application:

<Target Name="BeforeBuild">
    <MSBuild Projects="%(ProjectReference.FullPath)" Targets="Package" 
Properties="Configuration=$(Configuration);Platform=AnyCPU" 
Condition="'%(ProjectReference.WebProject)'=='True'" />
    <PropertyGroup>
      
<DefineConstants>BasePath=%(ProjectReference.RootDir)%(ProjectReference.Directory);</DefineConstants>
      
<LinkerBaseInputPaths>%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\Package\PackageTmp\</LinkerBaseInputPaths>
      
<HeatDefinitions>MySourcePath=%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\Package\PackageTmp\</HeatDefinitions>
    </PropertyGroup>
    <HeatDirectory OutputFile="%(ProjectReference.Filename).wxs" 
Directory="%(ProjectReference.RootDir)%(ProjectReference.Directory)obj\$(Configuration)\Package\PackageTmp\"
 DirectoryRefId="INSTALLFOLDER" 
ComponentGroupName="%(ProjectReference.Filename)_Project" 
AutogenerateGuids="true" SuppressCom="true" SuppressFragments="true" 
SuppressRegistry="true" SuppressRootDirectory="true" ToolPath="$(WixToolPath)" 
PreprocessorVariable="var.BasePath" 
Condition="'%(ProjectReference.WebProject)'=='True'" />
  </Target>

The above section is working fine in other three solutions, but fails in one 
solution with this particular error:
heat.exe(0,0): error HEAT0321: The harvest type was not found in the list of 
loaded Heat extensions.

The whole output (first few lines are from msdeploy packaging command):
22>                                  Sample script for deploying this package 
is generated at the following location:
22>C:\MVCStarterBase\BBCStartProject\Web\obj\Debug\Package\Web.deploy.cmd
22>For this sample script, you can change the deploy parameters by changing the 
following file:
22>C:\MVCStarterBase\BBCStartProject\Web\obj\Debug\Package\Web.SetParameters.xml
22>         C:\Program Files (x86)\WiX Toolset v3.6\bin\Heat.exe dir 
C:\MVCStarterBase\BBCStartProject\Web\obj\Debug\Package\PackageTmp\ -cg 
Web_Project -dr INSTALLFOLDER -scom -sreg -srd -var var.BasePath -ag -sfrag 
-out Web.wxs
22>heat.exe(0,0): error HEAT0321: The harvest type was not found in the list of 
loaded Heat extensions.
22>Done building project "Setup.wixproj" -- FAILED.
22>
22>Build FAILED.

If I run the above command in cmd window, no error occurs (I just have to 
include quotes for heat.exe path). As I understand, "The harvest type was not 
found in the list of loaded Heat extensions" error occurs if I specify bad 
harvest type name, but "dir" is a legitimate harvest type name.

Any help is appreciated.

Regards,

Donatas Vyzas
Blue Bridge Code, UAB

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to