Skip to content

Conversation

@targos
Copy link
Member

Building and testing Node.js with Visual Studio 2019 is now working as
expected.

/cc @nodejs/platform-windows

@nodejs-github-botnodejs-github-bot added build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. windows Issues and PRs related to the Windows platform. labels Oct 18, 2019
@targos
Copy link
MemberAuthor

@nodejs/build Are there already plans to add VS 2019 to our CI?

@joaocgreis
Copy link
Member

@targos Can you make VS2019 the default? Leave VS2017 as it was, but move VS2019 above and change it to fallback to VS2017 if not found. We've always preferred the latest version, I believe we should keep doing that.

I will add VS2019 machines to CI, and plan to start using it to build releases on Node v14.

@gengjiawen
Copy link
Member

Can you add Fix #27214 in description ? That will relate to the issue.

Building and testing Node.js with Visual Studio 2019 is now working as expected. Fallback to VS 2017 if VS 2019 was not found. Fixes: nodejs#27214
@targos
Copy link
MemberAuthor

@joaocgreis@gengjiawen done 👍

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@targostargos changed the title build: fallback to VS 2019 if VS 2017 was not foundbuild: default Windows build to Visual Studio 2019Oct 18, 2019
@targos
Copy link
MemberAuthor

Landed in b554214

@targostargos closed this Oct 20, 2019
targos added a commit that referenced this pull request Oct 20, 2019
Building and testing Node.js with Visual Studio 2019 is now working as expected. Fallback to VS 2017 if VS 2019 was not found. Fixes: #27214 PR-URL: #30022 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
@targostargos deleted the vs2019-default branch October 20, 2019 14:08
MylesBorins pushed a commit that referenced this pull request Oct 23, 2019
Building and testing Node.js with Visual Studio 2019 is now working as expected. Fallback to VS 2017 if VS 2019 was not found. Fixes: #27214 PR-URL: #30022 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 23, 2019
Building and testing Node.js with Visual Studio 2019 is now working as expected. Fallback to VS 2017 if VS 2019 was not found. Fixes: #27214 PR-URL: #30022 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Oct 23, 2019
richardlau added a commit to richardlau/node-1 that referenced this pull request Nov 5, 2019
When run in a Visual Studio 2017 command prompt the `VCINSTALLDIR` environment variable will be already set and is not cleared by the `tools/msvs/vswhere_usability_wrapper.cmd` utility when it fails to find Visual Studio 2019. This causes `vcbuild.bat` to incorrectly assume Visual Studio 2019 and generate an incompatible configuration. Clearing the value of `VCINSTALLDIR` before calling the utility fixes the detection logic. PR-URL: nodejs#30119Fixes: nodejs#30118 Refs: nodejs#30022 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: João Reis <[email protected]>
targos pushed a commit that referenced this pull request Nov 5, 2019
When run in a Visual Studio 2017 command prompt the `VCINSTALLDIR` environment variable will be already set and is not cleared by the `tools/msvs/vswhere_usability_wrapper.cmd` utility when it fails to find Visual Studio 2019. This causes `vcbuild.bat` to incorrectly assume Visual Studio 2019 and generate an incompatible configuration. Clearing the value of `VCINSTALLDIR` before calling the utility fixes the detection logic. PR-URL: #30119Fixes: #30118 Refs: #30022 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: João Reis <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.docIssues and PRs related to the documentations.windowsIssues and PRs related to the Windows platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@targos@joaocgreis@gengjiawen@nodejs-github-bot@richardlau@BethGriggs