我正在为visual studio 2015企业版中的powershell图形用户界面而苦苦挣扎。
问题是:我想在visual studio中为powershell脚本构建gui。我知道如何在Powershell ISE中做到这一点,但是通过脚本构建表单需要花费很多时间。我不想为此下载Sapien Powershell Studio或Powershell Studio。此版本内置了powershell项目,即: Powershell模块项目和Powershell脚本项目。但是,一旦选择此类型的项目,就无法添加windows窗体。我知道这是可能的,看看下面youtube上的视频就知道了:
https://www.youtube.com/watch?v=q4CsFblKotc&list=UUIrhSHyw-ySF4eQFkt6fQSA&index=10
正如你在视频中看到的,guy有能力将Powershell表单添加到项目中。我不能这样做,因为我唯一的选择是:
Powershell脚本、Powershell测试、Powershell脚本数据文件、Powershell脚本模块。
我还会补充说,我不想使用WPF项目来做这件事。
有人知道如何在Visual Stuido中启用Powershell窗体吗?提前感谢!!
发布于 2017-07-22 01:38:31
您将需要以下内容:
[**Visual Studio 2017 (Any edition, Community edition)**][1]
**[PowerShell Tools for Visual Studio 2017][1]** 来源:https://wandering.life/building-windows-forms-powershell-visual-studio-2017/
https://stackoverflow.com/questions/42116429
复制相似问题