PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID15889
PG Version11.4
OSWindows Server 2016
Opened2019-07-03 09:10:34+00
Reported byGao Lin
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      15889
Logged by:          Gao Lin
Email address:      (redacted)
PostgreSQL version: 11.4
Operating system:   Windows Server 2016
Description:        

Environment:
Windows Server 2016 + VS2017 + PostgreSQL master branch latest srouce
code.

PostgreSQL failed to build due to error MSB8020: The build tools for v142
(Platform Toolset = 'v142') cannot be found with MSVC on windows.  It can be
first reproduced on master branch 2b1394fc2b52a2573d08aa626e7b49568f27464e
reversion which is 'Add support for Visual Studio 2019 in build scripts'. 

Further investigation we found that VS2017 does not seem to be supported in
this commit. We mainly use open source projects to test VS compilers.
Currently we are using VS2017 and there is no plan to migrate to VS2019.
Could you please help look at this issue and provide a work around to us to
solve this issue? Thanks a lot!

Failures:
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,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:\PostgreSQL\src\postgres.vcxproj]

Messages

DateAuthorSubject
2019-07-03 09:10:34+00PG Bug reporting formBUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-03 10:10:44+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-03 11:35:51+00Michael PaquierRe: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-04 08:18:44+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-04 08:32:14+00Michael PaquierRe: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-04 18:12:30+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-04 23:48:15+00Michael PaquierRe: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-10 09:08:46+00Haribabu KommiRe: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-10 09:53:51+00Haribabu KommiRe: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-10 12:51:44+00Michael PaquierRe: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
2019-07-10 15:43:53+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows