From 9ec30bb24be43fdb2c03f136f6f45a144c93567a Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Mon, 2 Feb 2026 14:04:51 +0100 Subject: [PATCH] win: improve Add-Type with -IgnoreWarnings Refs: https://github.com/nodejs/node-gyp/issues/3276 --- lib/find-visualstudio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/find-visualstudio.js b/lib/find-visualstudio.js index 22fc4013f9..efb8b02a59 100644 --- a/lib/find-visualstudio.js +++ b/lib/find-visualstudio.js @@ -247,7 +247,7 @@ class VisualStudioFinder { 'Unrestricted', '-NoProfile', '-Command', - '&{Add-Type -Path \'' + csFile + '\';' + '[VisualStudioConfiguration.Main]::PrintJson()}' + '&{Add-Type -IgnoreWarnings -Path \'' + csFile + '\';' + '[VisualStudioConfiguration.Main]::PrintJson()}' ] this.log.silly('Running', ps, psArgs)