[wix-users] VS2019 C++ project harvesting

Sean Hall r.sean.hall at gmail.com
Wed Oct 21 09:44:30 PDT 2020


No one has implemented project harvesting in Heat for MSBuild 15+ (
https://github.com/wixtoolset/issues/issues/5490).

On Wed, Oct 21, 2020 at 3:45 AM DUCKA Michal via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> Hi All, my first post here, hope not to break any unspoken newbie rules 😊
>
> I’m having a hard time updating VS2010 WiX setup project to VS2019 tools.
> What we want to do in same exercise is to migrate C++ projects to v142
> toolset. I’ve tries many ways but still cannot force heat to harvest such a
> project properly. Problem already fought against:
>
>   *   On VS2010 + VS2019 machine – no way to persuade heat to use MSBuild
> + it’s settings from Program files x86\Visual studio\... folder. It was
> always trying to take it from Program files x86\MSBuild
>   *   I moved to new machine with VS2019 only – problem persisted but was
> able to overcome it by setting VCTargetsPath environmental variable.
>   *   Changed ToolsVersion for both C++ project and WiX setup project to
> 15.0 or Current and result is same - cannot go any further because of this
> message: heat.exe(0,0): error HEAT5305: Failed to load project
> RibbonBar2017.vcxproj: The expression
> "[Microsoft.Build.Utilities.ToolLocationHelper]::FindRootFolderWhereAllFilesExist(C:\Program
> Files (x86)\Microsoft Visual
> Studio\2019\Professional\MSBuild\Microsoft\VC\v160\;,
> Platforms\Win32\PlatformToolsets\v142\Toolset.props;Platforms\Win32\PlatformToolsets\v142\Toolset.targets;Platforms\Win32\Platform.props;Platforms\Win32\Platform.targets)"
> cannot be evaluated. Method
> 'Microsoft.Build.Utilities.ToolLocationHelper.FindRootFolderWhereAllFilesExist'
> not found.
>
> After reading this I checked around and found out some suggestions that it
> may be related to MSBuild 15 dlls to be registered in GAC and that
> unregistration should help, but it was not the case. I have MSBuild stuff
> in GAC but it v4.0 dlls.
>
> So, my question is simple: is there a way to harvest VC++ v142 project
> using heat.exe on VS2019 only machine? If so, what I missed or did wrong to
> achieve it?
>
> Michał
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/



More information about the wix-users mailing list