PowerShell 6-支持Windows GUI库 [英] PowerShell 6 - support for Windows GUI libraries
问题描述
我知道新的PowerShell 6/core缺少对Windows GUI库的支持,我已经使用 Windows.Forms .NET类在PS-5.1中开发了一些重要项目.
I understand that the new PowerShell 6/core lacks support for Windows GUI libraries, I have developed some important projects in PS-5.1 using the Windows.Forms .NET classes.
问题: 我们计划在今年夏天升级到PowerShell 6,这意味着我将失去所有的GUI功能(使用Windows.Forms开发).
Problem: We are planning to upgrade to PowerShell 6 this summer, which means I will lose all the GUI functionalities (developed using Windows.Forms).
问题: 在这种情况下,我们应该怎么做才能在我们的PS应用程序中保留GUI功能.您是否设想Microsoft将来会提供任何其他GUI支持替代方法?
Question: What should we do in this situation in order to retain the GUI functionality in our PS apps. Do you envisage Microsoft will provide any alternatives for GUI support going forward?
TIA
推荐答案
我有一个问题,就是升级"到PowerShell 6是什么意思?在Windows上没有升级.您将与现有版本的PowerShell并行运行PowerShell 6.因此,如果要继续运行使用GUI内容的旧脚本,请在PowerShell 3、4或5.1中继续这样做.如果要开始使用PowerShell 6来编写将在所有平台上运行的脚本,则可以使用PowerShell 6.好消息是,您将继续拥有两者. (至少现在)
One question I have is what you mean by "Upgrading" to PowerShell 6? On Windows there is no upgrade. You will run PowerShell 6 side-by-side with your existing version of PowerShell. So, if you want to keep running your old scripts that use GUI stuff, keep doing so in PowerShell 3, 4 or 5.1. If you want to start using PowerShell 6 in order to write scripts that will function on all platforms, then use PowerShell 6 for that. The good news is, you will continue to have both. (for now at least)
这篇关于PowerShell 6-支持Windows GUI库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!