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
echo Strongly named assembly: %1
goto END
echo Not a strongly named assembly: %1
goto END


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s