簡體   English   中英

在Visual Studio中編輯二進制PowerShell模塊。 如何為cmdlet添加多行注釋?

[英]Editing binary PowerShell module in Visual Studio. How to add multi-line comments for cmdlets?

我要為我們的產品接管別人的二進制PowerShell模塊。 我是VS的新手,但不是PowerShell。

我正在嘗試查找有關如何向cmdlet添加基於注釋的幫助的信息,但沒有在Visual Studio(以我為例,2013 Premium)中找到這樣做的語法。 我的BingFoo失敗了,我在網上搜索中沒有提出任何建議。 是否有人知道顯示該操作方法的網站/文章/頁面?

我還需要在每個參數上方添加注釋。 例如,我想要

   (some syntax here)
   [Parameter(Mandatory = false)]
   public string WiFi { get; set; }

在PowerShell中查看時在cmdlet中導致以下內容:

   # Whether this subnet is on Wi-Fi
   [Parameter(Mandatory = false)]
   [string] $WiFi

幾個人告訴我這不可能完成。 因此,我最終只使用了來自Codeplex的PowerShell Cmdlet幫助編輯器 使生活變得更加輕松。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM