-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for VS2022 #48
Conversation
index.js
Outdated
for (const prog_files of PROGRAM_FILES) { | ||
for (const ver of VERSIONS) { | ||
for (const ed of EDITIONS) { | ||
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat` | ||
core.info(`Trying standard location: ${path}`) | ||
if (fs.existsSync(path)) { | ||
core.info(`Found standard location: ${path}`) | ||
return path | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, please follow the original rule of indentation.
for (const prog_files of PROGRAM_FILES) { | |
for (const ver of VERSIONS) { | |
for (const ed of EDITIONS) { | |
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat` | |
core.info(`Trying standard location: ${path}`) | |
if (fs.existsSync(path)) { | |
core.info(`Found standard location: ${path}`) | |
return path | |
} | |
} | |
} | |
} | |
for (const prog_files of PROGRAM_FILES) { | |
for (const ver of VERSIONS) { | |
for (const ed of EDITIONS) { | |
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat` | |
core.info(`Trying standard location: ${path}`) | |
if (fs.existsSync(path)) { | |
core.info(`Found standard location: ${path}`) | |
return path | |
} | |
} | |
} | |
} |
Sorry about that, I think I fixed it. 2 spaces per indent. |
Well, not really. The original is 4 spaces per indent... 🤪 In addition, just now, you could have applied my suggestion on GitHub without submitting a new commit manually. See Incorporating feedback in your pull request - GitHub Docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks! Both of you ❤️ |
This allows support of VS2022, it adds the check to programfiles in addition to programfilesx86