MSBuild uses the AssemblySearchPaths property to determine the locations
where it searches for assembly references. See
http://msdn.microsoft.com/en-us/library/vstudio/bb629394.aspx

You could either set the HintPath for the reference OR you could add the
location of Microsoft.Deployment.WindowsInstaller.dll to
AssemblySearchPaths with something like this:

<PropertyGroup>
  <AssemblySearchPaths>
    C:\Program Files (x86)\WiX Toolset v3.6\bin;
    $(AssemblySearchPaths)
  </AssemblySearchPaths>
</PropertyGroup>

Note that you could possibly shadow other assemblies you depend on if
they exist in WiX's bin directory (or whatever appropriate directory you
use).

My guess as to why 32-bit MSBuild (on the command line, not through
Visual Studio) is that AssemblySearchPaths must be getting set with
32-bit only path. Perhaps something like C:\Program Files\WiX Toolset
v3.6\bin which would only resolve for 32-bit processes... You can use
the /verbose:diagnostic command line option to show you property values
and a lot of other stuff you never cared about too!


On 8/27/13 11:59 AM, John Cooper wrote:
> That doesn't look right.  Bearing in mind that we're still using WiX 3.6 RTM, 
> my HintPath looks like:
>
> &lt;Reference Include="Microsoft.Deployment.WindowsInstaller, 
> Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, 
> processorArchitecture=MSIL"&gt;
>   &lt;HintPath&gt;..\..\..\..\..\Program Files (x86)\WiX Toolset 
> v3.6\bin\Microsoft.Deployment.WindowsInstaller.dll&lt;/HintPath&gt;
> &lt;/Reference&gt;
>
> I don't think you're going to resolve an assembly without a hint path unless 
> it's in the GAC.
> --
> John Merryweather Cooper
> Build & Install Engineer -- ESA
> Jack Henry & Associates, Inc.(r)
> Shawnee Mission, KS  66227
> Office:  913-341-3434 x791011
> jocoo...@jackhenry.com
> www.jackhenry.com
>
>
>
>
> -----Original Message-----
> From: Skildum, Mathew [mailto:mathew.skil...@aspect.com] 
> Sent: Tuesday, August 27, 2013 1:45 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] 64 bit version of MS build cannot find the WIX 
> toolset
>
> The Microsoft.Deployment.WindowsInstaller assembly is located in the default 
> installation location.  No customization has been done to the system or the 
> projects.
>
> Here is the project file section that lists the above assembly refference:
>   <ItemGroup>
>     <Reference Include="System" />
>     <Reference Include="System.Core">
>       <RequiredTargetFramework>3.5</RequiredTargetFramework>
>     </Reference>
>     <Reference Include="System.Management.Automation, Version=1.0.0.0, 
> Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
>       <SpecificVersion>False</SpecificVersion>
>       
> <HintPath>..\..\Assemblies\Powershell\System.Management.Automation.dll</HintPath>
>       <Private>True</Private>
>     </Reference>
>     <Reference Include="System.Windows.Forms" />
>     <Reference Include="Microsoft.Deployment.WindowsInstaller" />
>   </ItemGroup>
>
> Mat Skildum
>
>
>
>
> -----Original Message-----
> From: Edwin Castro [mailto:0ptikgh...@gmx.us]
> Sent: Tuesday, August 27, 2013 1:13 PM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] 64 bit version of MS build cannot find the WIX 
> toolset
>
> On 8/27/13 11:03 AM, Skildum, Mathew wrote:
>> All hint paths are correct as everything build correctly in Visual Studio 
>> (2010 and 2012).  The only time it fails is when I use the 64 bit version of 
>> MS Build.
> Can you provide the reference XML from the project file? I assume you have 
> not modified them manually, correct?
>
> --
> Edwin G. Castro
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies 
> and advance your career. Get an incredible 1,500+ hours of step-by-step 
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies 
> and advance your career. Get an incredible 1,500+ hours of step-by-step 
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> NOTICE: This electronic mail message and any files transmitted with it are 
> intended
> exclusively for the individual or entity to which it is addressed. The 
> message, 
> together with any attachment, may contain confidential and/or privileged 
> information.
> Any unauthorized review, use, printing, saving, copying, disclosure or 
> distribution 
> is strictly prohibited. If you have received this message in error, please 
> immediately advise the sender by reply email and delete all copies.
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to