Skip to content

win: improve Add-Type with -IgnoreWarnings#3280

Open
StefanStojanovic wants to merge 1 commit intonodejs:mainfrom
JaneaSystems:mefi-add-type-fix
Open

win: improve Add-Type with -IgnoreWarnings#3280
StefanStojanovic wants to merge 1 commit intonodejs:mainfrom
JaneaSystems:mefi-add-type-fix

Conversation

@StefanStojanovic
Copy link
Contributor

This PR takes advice from the referenced issue and makes the logic for finding Visual Studio more robust.

Refs: #3276

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the -IgnoreWarnings parameter to the PowerShell Add-Type command used for Visual Studio detection, following advice from issue #3276 where a user reported node-gyp being unable to find their VS Build Tools installation on Windows 11.

Changes:

  • Added -IgnoreWarnings flag to the PowerShell Add-Type command in the findNewVS method to suppress compiler warnings when loading the C# Visual Studio detection code.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant