Skip to content

Commit 1381458

Browse files
win: improve Add-Type with -IgnoreWarnings (#3280)
Refs: #3276
1 parent 46d7576 commit 1381458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/find-visualstudio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class VisualStudioFinder {
247247
'Unrestricted',
248248
'-NoProfile',
249249
'-Command',
250-
'&{Add-Type -Path \'' + csFile + '\';' + '[VisualStudioConfiguration.Main]::PrintJson()}'
250+
'&{Add-Type -IgnoreWarnings -Path \'' + csFile + '\';' + '[VisualStudioConfiguration.Main]::PrintJson()}'
251251
]
252252

253253
this.log.silly('Running', ps, psArgs)

0 commit comments

Comments
 (0)