Second Life of a Hungarian SharePoint Geek

July 20, 2011

How to get the strong name of a GACed assembly – the easy way

Filed under: Tips & Tricks — Tags: — Peter Holpar @ 08:49

This post is really just a quick tip, because I recently read this post, and wanted to show the community there is a more simple, although a less-known way to achieve the same or better result.

You should simply browse to GAC, select the assembly you need the strong name for, then from the Edit menu choose Copy Display Name menu item (or its keyboard shortcut Ctrl+I).

image

You can then paste the strong name from the clipboard as a safe control in the web.config, use it in your .webpart/.dwp file or your event receiver registration.

I found this option in GAC menu about a year ago when made a last try to do it using the Windows built-in tools before implementing my custom solution for the issue. After I found the menu there, I looked around on the Internet and there were a few posts that described this solution, like this one. I did not blog about this that time because I really don’t like to post about already-existing solutions. Now I’m making except because I see that fellow-developers are still not aware of this simple option that may make their life at least a bit easier.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: