Created
January 11, 2017 05:39
-
-
Save iamkarlson/717b43cc7ea934913630bfa6ddac3def to your computer and use it in GitHub Desktop.
Small powershell script which is print out assembly version from current directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function global:Get-AssemblyInfo() | |
| { | |
| param([switch]$Recurse) | |
| if($Recurse){ | |
| get-childitem * -Recurse -include *.dll,*.exe | foreach-object { "{0}\{1}`t{2}" -f $_.Directory, $_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion } | |
| } else{ | |
| get-childitem * -include *.dll,*.exe | foreach-object { "{0}`t{1}" -f $_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment