Hello All,
I am in trouble with building my WiX solution using NAnt and MSBuild task on a server which is running under Windows 2003 x64. NAnt task is simple: <exec program="msbuild.exe" basedir="${ProspX.netFrameworkPath}" workingdir="${wc.branchPath}" resultproperty="setup.WiX.result" failonerror="false"> <arg value=".\XChangeWiX\XChangeWix.sln" /> <arg value="/property:Configuration=${build.configuration};Platform=${build.platform}" /> <arg value="/verbosity:${build.verbosity}" /> </exec> The WiX solution contains 3 wixproj; each of them has <PropertyGroup> <WixRoot>..\..\Lib\WiX\v3.0\</WixRoot> <WixTargetsPath>$(WixRoot)Wix.targets</WixTargetsPath> <WixTasksPath>..\$(WixRoot)wixtasks.dll</WixTasksPath> </PropertyGroup> Each time when I am trying to build the solution file from NAnt, NAnt crashes; in NAnt's output I see: [exec] Target Compile: [exec] ..\..\Lib\WiX\v3.0\candle.exe -d"DevEnvDir=*Undefined if not building from within Visual Studio*" -dSolutionDir=E:\1Projects\Releases\3.3.2\XChangeWiX\ -dSolutionExt=.sln -dSolutionFileName=XChangeWix.sln -dSolutionName=XChangeWix -dSolutionPath=E:\1Projects\Releases\3.3.2\XChangeWiX\XChangeWix.sln -dConfiguration=Release -dOutDir=..\Output\ -dPlatform=x86 -dProjectDir=E:\1Projects\Releases\3.3.2\XChangeWiX\XChangeWiXUI\ -dProjectExt=.wixproj -dProjectFileName=XChangeWiXUI.wixproj -dProjectName=XChangeWiXUI -dProjectPath=E:\1Projects\Releases\3.3.2\XChangeWiX\XChangeWiXUI\XChangeWiXUI.wixproj -dTargetDir=E:\1Projects\Releases\3.3.2\XChangeWiX\Output\ -dTargetExt=.wixlib -dTargetFileName=XChangeWiXUI.wixlib -dTargetName=XChangeWiXUI -dTargetPath=E:\1Projects\Releases\3.3.2\XChangeWiX\Output\XChangeWiXUI.wixlib -out obj\Release\MyBrowseDlg.wixobj -arch x86 UI\MyBrowseDlg.wxs [exec] Could not load file or assembly 'file:///E:\1Projects\Releases\3.3.2\Lib\WiX\v3.0\candle.exe' or one of its dependencies. An attempt was made to load a program with an incorrect format. [exec] at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) [exec] at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) [exec] at System.Reflection.Assembly.LoadFrom(String assemblyFile) [exec] at Microsoft.Tools.WindowsInstallerXml.Build.Tasks.WixToolTask.ExecuteToolThread(Object parameters) The E:\1Projects\Releases\3.3.2\Lib\WiX\v3.0\candle.exe' file exists and all necessary files are in the same folder. Also, if I change WixTasksPath to not existing folder (or to folder which does not have WixTasks.dll file) I get another error (somethis llike could not load file WixTasks.dll). My bet is that there is something wrong with WixTasks.dll for x64 platform. The same NAnt script is working fine on my dev machine with is running under Windows XP x86. Also, Visual Studio 2005 on the server builds the solution without any problems too. I am using the latest release of WiX (3.0.4805.0). Any help appreciated! Dmitry ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users