I recently updated WiX to 3.8 (from 3.7) and had to modify an older
solution that includes an installer built using 3.7.  When I try to open
the solution I get the following error:

The imported project "C:\Program Files (x86)\WiX Toolset
v3.8\bin\Wix.targets" was not found. Confirm that the path in the <Import>
declaration is correct, and that the file exists on disk.

@Import points to:

  <Import Project="$(WixTargetsPath)" />

and $(WixTargetsPath) points back to:

    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND
'$(MSBuildExtensionsPath32)' != ''
">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
    <WixTargetsPath Condition=" '$(WixTargetsPath)' == ''
">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>

$(MSBuildExtensionsPath32) is supposed to point to C:\Program Files
(x86)\MSBuild (on an x64 machine) but it appears it is only pointing to
"C:\Program Files (x86)" according tot eh error message.

Newer WiX projects started after installing WiX 3.8 point to the same
location and work as expected.   The file "Wix.targets" does exist in the
MSBuild\Microsoft\WiX\v3.x folder.

Any idea why the older projects are not working and how to fix?

Brian

If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&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