Reading the Microsoft documentation for creating PowerShell Cmdlets, I notice there is no example code for F#; instead, there is a message saying that "This language is not supported or no code example is available.".
阅读用于创建PowerShell Cmdlet的Microsoft文档,我注意到F#没有示例代码;相反,有一条消息说“不支持此语言或没有代码示例可用。”。
Is F# not supported for creating Cmdlets, or aren't there any examples in F#?
是否不支持F#创建Cmdlet,或者F#中没有任何示例?
1 个解决方案
#1
7
Take a look at this: Writing PowerShell Cmdlets in F#. Not exactly a complete example of how to do this but it certainly seems to be possible to write cmdlets in F#.
看看这个:在F#中编写PowerShell Cmdlet。不完全是如何做到这一点的完整示例,但它似乎可以在F#中编写cmdlet。
EDIT: There is a more extensive example here but the contextual information is a little bit out of date. Actually the contextual information is a bit out of date on both links but the first link is more recent.
编辑:这里有一个更广泛的例子,但上下文信息有点过时。实际上,上下文信息在两个链接上都有点过时,但第一个链接更新。
#1
7
Take a look at this: Writing PowerShell Cmdlets in F#. Not exactly a complete example of how to do this but it certainly seems to be possible to write cmdlets in F#.
看看这个:在F#中编写PowerShell Cmdlet。不完全是如何做到这一点的完整示例,但它似乎可以在F#中编写cmdlet。
EDIT: There is a more extensive example here but the contextual information is a little bit out of date. Actually the contextual information is a bit out of date on both links but the first link is more recent.
编辑:这里有一个更广泛的例子,但上下文信息有点过时。实际上,上下文信息在两个链接上都有点过时,但第一个链接更新。