【发布时间】:2022-01-06 04:42:55
【问题描述】:
我正在使用 System.Windows.Forms 程序集中的 Windows.Forms.MonthCalendar。
从 Powershell ISE 运行脚本时,它看起来像这样:
但是当通过 dekstop 快捷方式运行脚本时,它看起来像这样: (快捷方式目标:C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Temp\Test.ps1")
如果 Powershell ISE 使用的是更高版本的 Powershell,我如何在快捷方式中使用该版本?
TIA
【问题讨论】:
-
stackoverflow.com/questions/3358372/… 的可能副本,尽管该问题中不再提供图像...
标签: forms powershell winforms monthcalendar