I have a wixproj that uses HeatDirectory to build the file references I need
for an MSI. It is running fine on my machine, but failing on the build server,
which is running Team Foundation Server 2010's Team Build. I have not
installed WiX on the build server, but instead checked the files in and
reference them from there. I have included the
<RunWixToolsOutOfProc>true</RunWixToolsOutOfProc> element, but am still getting
'Unhandled Exception: System.BadImageFormatException: Could not load file or
assembly 'file:///C:\Builds\1\claw3x\Continuous
Integration\Sources\Builds\Common\Libraries\WiX 3.6\Heat.exe' or one of its
dependencies. An attempt was made to load a program with an incorrect format.'
I've tried different builds of 3.5 and 3.6 to no avail. I don't know where to
go from here. I'm including a portion of the .wixproj file to show how things
are setup...
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WixToolPath>$(MSBuildProjectDirectory)..\..\..\Common\Libraries\WiX
3.6\</WixToolPath>
<WixTargetsPath>$(WixToolPath)\Wix.targets</WixTargetsPath>
<WixTasksPath>$(WixToolPath)\wixtasks.dll</WixTasksPath>
<RunWixToolsOutOfProc>true</RunWixToolsOutOfProc>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == ''
">Release</Configuration>
...
<HeatDefinitions>ClawAppDirPath=$(SolutionDropPath)$(Platform)\$(Configuration)\CLAWDemoApp\</HeatDefinitions>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;$(HeatDefinitions)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86'
">
<DefineConstants>$(HeatDefinitions)</DefineConstants>
</PropertyGroup>
...
<Target Name="BeforeBuild">
<ItemGroup>
<ClawAppHeatDir
Include="$(SolutionDropPath)$(Platform)\$(Configuration)\CLAWDemoApp\" />
</ItemGroup>
<HeatDirectory OutputFile="$(ProjectDir)\ClawAppRef.wxs"
Directory="@(ClawAppHeatDir)"
ComponentGroupName="ClawAppComponentGroup"
DirectoryRefId="INSTALLDIR"
AutogenerateGuids="true"
PreprocessorVariable="var.ClawAppDirPath"
SuppressRegistry="true"
SuppressRootDirectory="true"
ToolPath="$(WixToolPath)"
NoLogo="true" />
</Target>
</Project>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users