Tuesday, February 8, 2011

How to get your DLL information (Public Token Key, Version)

We are somtimes required many times to find out the exact information about DLL's we create. Sometimes this can pose a challenge and we sometimes get this slightly wrong. If you require to get information about a certain DLL please follow the steps below:

• Open up the Visual Studio command prompt
• Navigate to where your project DLL is stored (c:\projects\dummy\bin\debug)
• Type gacutil -i dummy.dll (The name of your DLL) This will add your assembly to the cache.
• Now type gacutil -l dummy (Your assembly name)

if you are however using .net 3.5 you can find the gacutil utility at C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin, have a look in that directory as you can now find other utilities stored at the location.

The final step will give you all the relevant information about your DLL, now you can copy and paste it to where ever might be relevant.

I hope this post has helped you.

No comments:

Post a Comment