Identify .Net Framework Version of DLLs using PowerShell


Use the below snippet code to check the version of the DLLs.

$filepath=’D:\DLLS\’

$files=Get-ChildItem -Path $filepath -Recurse -filter *.dll

foreach($file in $files)

{

$version = [System.Reflection.Assembly]::ReflectionOnlyLoadFrom($file.FullName).ImageRuntimeVersion;

echo "$($file) is using Framework: $version"

}

Regards,

Chaitanya

Leave a comment

Design a site like this with WordPress.com
Get started