Retrieve the PublicKeyToken for a dll

Simple util snippets that make your life easier: how to get the PublicKeyToken for a dll you have to reference in your code.

Using the sn.exe tool, that on my instance can be found, among other places, at C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin.

Just open a cmd at the path that has the exe and type sn -T PathToDll.

No comments:

Post a Comment