How to check if DLL or Assembly is Strong Typed Assembly or Not
Using sn.exe from command prompt, you can verify is DLL is Strong Typed Assembly or not. Example below- C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>sn.exe -vf C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll For more information on this command, check help by typing- > "sn.exe /?". In above command, it is mentioned to use -vf for verifying / checking strong name assembly forcefully even if disabled in the registry.Also, you can put below in a script-@ echo off if "%1"=="" goto END sn -q -vf %1 > NUL if ERRORLEVEL 1 goto NOT_STRONG :STRONG echo Strongly named assembly: %1 goto END :NOT_STRONG echo Not a strongly named assembly: %1 goto END :END












