Add a .version to comment-based help, that can also be called from script - by are bee en zed

Status : 


Sign in
to vote
ID 841437 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 3/26/2014 4:05:10 PM
Access Restriction Public


I'd love to be have a .version added through comment based help on scripts and functions. This would be especially valuable if it was visible from within the script or function itself as well, perhaps as a member of $MyInvocation or $PSCmdLet.

# .Version 1.0.12 (March 26, 2014)


   write-host "This is the FooBar script version $($MyInvocation.Version)!"

output on host:

This is the FooBar script version 1.0.12 (March 26, 2014)!
Sign in to post a comment.