[wix-devs] More on Wix 4.0 Build Problems

Bob Arnson bob at firegiant.com
Sat May 22 12:57:50 PDT 2021


Sounds like you're building from an x64 VS command prompt...

-----Original Message-----
From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of Ron Martin via wix-devs
Sent: Saturday, 22 May, 2021 15:50
To: wix-devs at lists.wixtoolset.org
Cc: Ron Martin <cpuwzd at comcast.net>
Subject: Re: [wix-devs] More on Wix 4.0 Build Problems

As I mentioned in my previous post, I recloned my repo and ran build.cmd without opening the solution in VS 2019. I now get the following error. I checked the .vcxproj file and, indeed, it has configurations for Debug|win32 and Release|win32.

If it's not supposed to be there, why are we looking for Debug|x64? How does it build on other systems?

Thanks.

Ron Martin

------------------------------------------------------------------------
"D:\Repos\Wix\wix4\src\internal\WixBuildTools.TestSupport.Native\WixBuildTools.TestSupport.Native.vcxproj" 
(Build targe

t) (1) ->
(PrepareForBuild target) ->
   C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(43
6,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|x64. [D:\Repos\Wi x\wix4\src\internal\WixBuildTools.TestSupport.Native\WixBuildTools.TestSupport.Native.vcxproj]

------------------------------------------------------------------------
On 5/22/2021 3:00 PM, Ron Martin via wix-devs wrote:
> Can someone please post a link to, or the contents of, a working 
> configuration. I'm about to try re-cloning with the VS 2019 options 
> I've added, but I'm not very hopeful that it is going to help.
>
> Is anyone running successfully with the latest Win 10 and VS 2019 
> updates.
>
> Is anyone running successfully without having VS 2017 installed?
>
> Thanks.
>
> Ron Martin
>
> On 5/21/2021 10:18 AM, Bob Arnson via wix-devs wrote:
>> You can export a configuration file from the installer but it 
>> includes everything in your VS setup, which might include stuff 
>> completely unrelated to WiX. Narrowing down exactly what's necessary 
>> is non-trivial.
>>
>> -----Original Message-----
>> From: Rob Mensching <rob at firegiant.com>
>> Sent: Friday, 21 May, 2021 10:05
>> To: WiX Toolset Developer Mailing List 
>> <wix-devs at lists.wixtoolset.org>
>> Cc: Bob Arnson <bob at firegiant.com>
>> Subject: RE: [wix-devs] More on Wix 4.0 Build Problems
>>
>> And...
>>
>> 1. In the v4 micro repos it was possible to avoid repos that required 
>> building for the Platform x PlatformToolset matrix. In the mono repo, 
>> everything is built so you're always exposed to the full matrix of 
>> supported platforms. This is something we can possibly optimize going 
>> forward.
>>
>> 2. In WiX v3 we did a lot of work in the build process to detect if 
>> you didn't have the full matrix of tools installed. It was annoying 
>> to maintain.
>>
>> The simplest answer is to document the requirements. Step up from 
>> there would be to use the VS workloads file (whatever it is called) 
>> to make it easier to instruct VS to add all the necessary parts. All 
>> improvements to be done in the mono repo system.
>>
>>
>> PS: I'm taking a little bit of time off from v4 to get caught up on 
>> some FireGiant work. I'll get back to my v4 backlog later next week.
>>
>> -----Original Message-----
>> From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of 
>> Bob Arnson via wix-devs
>> Sent: Friday, May 21, 2021 5:45 AM
>> To: WiX Toolset Developer Mailing List 
>> <wix-devs at lists.wixtoolset.org>
>> Cc: Bob Arnson <bob at firegiant.com>
>> Subject: Re: [wix-devs] More on Wix 4.0 Build Problems
>>
>> Don't forget x86, x64, and ARM64 variants, too.
>>
>> To be documented. VS doesn't make it easy to determine the minimal 
>> set of components we need.
>>
>> -----Original Message-----
>> From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of 
>> Rebecca Cran via wix-devs
>> Sent: Friday, 21 May, 2021 00:43
>> To: WiX Toolset Developer Mailing List 
>> <wix-devs at lists.wixtoolset.org>
>> Cc: Rebecca Cran <rebecca at bsdio.com>
>> Subject: Re: [wix-devs] More on Wix 4.0 Build Problems
>>
>> I hit the same problem and solved it by modifying the VS2019 install 
>> to include the latest version of the various v142 tools, SDKs etc.
>>
>> I subsequently ran into it wanting the VS2017 bits too, so I went and 
>> installed those components in my VS2019 installation too. After that 
>> the build succeeded.
>>
>>
>> --
>> Rebecca Cran
>>
>>
>> On 5/20/21 10:35 PM, Ron Martin via wix-devs wrote:
>>> Running build.cmd, things running smoothly until:
>>>
>>> Build started 5/21/2021 12:23:09 AM.
>>> Project
>>> "D:\Repos\Wix\wix4\src\libs\dutil\WixToolset.DUtil\dutil.vcxproj" on 
>>> node 1 (default targets).
>>> C:\Program Files (x86)\Microsoft Visual 
>>> Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.t
>>> ar
>>> gets(439,
>>> 5): error MSB8020: The build tools for v142 (Platform Toolset =
>>> 'v142') cannot be found. To build using the v142 build tools, please 
>>> install v142 build tools.  Alternatively, you may upgrade to the 
>>> current Visual Studio tools by selecting
>>>   the Project menu or right-click the solution, and then selecting 
>>> "Retarget solution". [D:\Repos\Wix\wix4\src\libs\duti 
>>> l\WixToolset.DUtil\dutil.vcxproj] Done Building Project 
>>> "D:\Repos\Wix\wix4\src\libs\dutil\WixToolset.DUtil\dutil.vcxproj"
>>> (default targets) -- FAILED.
>>>
>>>
>>> Build FAILED.
>>>
>>> There are dependencies on Toolset 14.2 (referenced as 14.0). I can't 
>>> tell if my version of VS 2019 is too new or your libraries are built 
>>> with a version of VS2019 that is too old. I might be missing an 
>>> optional VS2019 component.
>>>
>>> Any suggestions?
>>>
>>> As always, thanks for your help.
>>>
>>> Ron
>>>
>>> ____________________________________________________________________
>>> WiX Toolset Developer Mailing List provided by FireGiant 
>>> http://www.firegiant.com/
>> ____________________________________________________________________
>> WiX Toolset Developer Mailing List provided by FireGiant 
>> http://www.firegiant.com/ 
>> ____________________________________________________________________
>> WiX Toolset Developer Mailing List provided by FireGiant 
>> http://www.firegiant.com/ 
>> ____________________________________________________________________
>> WiX Toolset Developer Mailing List provided by FireGiant 
>> http://www.firegiant.com/
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant 
> http://www.firegiant.com/
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-devs mailing list