【发布时间】:2020-08-27 16:14:24
【问题描述】:
我正在尝试显示一个消息框并且在 ISE/Powershell 中没有问题;但是,当我在 Visual Studio Code 中运行时,会出现此错误:
Line |
12 | $user = [Microsoft.VisualBasic.Interaction]::InputBox($msg, $title)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Method invocation failed because [Microsoft.VisualBasic.Interaction] does not contain a method named 'InputBox'.
我已将 Powershell 扩展添加到 VS Code。看来我仍然缺少一些东西,但我不确定是什么。
有什么想法吗?
【问题讨论】:
标签: powershell visual-studio-code