Skip to content

Instantly share code, notes, and snippets.

@iamkarlson
Created January 11, 2017 05:39
Show Gist options
  • Select an option

  • Save iamkarlson/717b43cc7ea934913630bfa6ddac3def to your computer and use it in GitHub Desktop.

Select an option

Save iamkarlson/717b43cc7ea934913630bfa6ddac3def to your computer and use it in GitHub Desktop.
Small powershell script which is print out assembly version from current directory
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