You can use reflection in PowerShell to find the exact TargetFrameworkAttribute embedded in the DLL. Open .
To check the .NET version of a DLL file, you can use several methods ranging from simple Windows File Explorer checks to command-line tools. Method 1: Windows File Explorer (Simplest) Check Dll .net Version
$path = "C:\path\to\your.dll" [Reflection.Assembly]::ReflectionOnlyLoadFrom($path).CustomAttributes | Where-Object $_.AttributeType.Name -eq "TargetFrameworkAttribute" | Select-Object -ExpandProperty ConstructorArguments | Select-Object -ExpandProperty value Use code with caution. You can use reflection in PowerShell to find
If you have Visual Studio installed, you can use specialized disassemblers to inspect metadata: Check Dll .net Version