Skip to content

Commit 1ba3253

Browse files
committed
Forgot to add -ExecutionPolicy Bypass when calling powershell.exe in the VS generated shortcut.
1 parent 3b15dbb commit 1ba3253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/restore-toolset.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function CreateVSShortcut()
112112
$wsShell = New-Object -ComObject WScript.Shell
113113
$shortcut = $wsShell.CreateShortcut($shortcutPath)
114114
$shortcut.TargetPath = $powershellPath
115-
$shortcut.Arguments = "-WindowStyle Hidden -Command ""$commandToLaunch"""
115+
$shortcut.Arguments = "-WindowStyle Hidden -ExecutionPolicy Bypass -Command ""$commandToLaunch"""
116116
$shortcut.IconLocation = $devenvPath
117117
$shortcut.WindowStyle = 7 # Minimized
118118
$shortcut.Save()

0 commit comments

Comments
 (0)