Add a .version to comment-based help, that can also be called from script
Votes from Connect: 14
Original Date Submitted: 3/27/2014 6:05:55 AM
Handle: are bee en zed
Site Name: PowerShell
Feedback ID: 841437
Frequency: Always Happens
Regression: Yes, this happens in all previous versions
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)!
Product Studio item created by Connect Synchronizer due to creation of feedback ID 841437 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=841437).
Internal BugId: 7687