Follow me on Twitter at Twitter.com/wbm
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
Signing an Assembly in Whidbey - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, Xamarin.iOS, Xamarin.Android, and Windows Azure.

News

Visual Studio Magazine Column Personal Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

Signing an Assembly in Whidbey

I have been working on some components that require signing.  One of the things that frustrated me back during .NET 1.x beta was that the option to automagically create a keyfile was removed after beta 2.  The feedback that I heard was that security is important and the ability to just randomly create a keyfile was not good practice, therefore the ability to create the keyfile was removed.  Well, I have been dinking back around with COM+ in Whidbey.  With COM+, you have to create a keyfile.  Well, the ability to create and use a key has been put back into the IDE as of Beta 2, which I think is great news.  You select your project and then its properties.  There is a tab label signing.  With that, you can either create a new keyfile or use an exisiting one.  One side genefit of this is that it appears there is no need to specify the assebly's keyfile in the attributes for the assembly.  I think that this is an improvement as I always seemed to have problems with getting the directory correct in Everrett.

Wally

Posted: May 23 2005, 08:40 AM by Wallym | with 6 comment(s)
Filed under:

Comments

Jerry Albro said:

I have found that you can edit the .csproj file and "fix" the path to the key file, so that you can keep exactly one key file around. I just changed <AssemblyOriginatorKeyFile>keys.snk</AssemblyOriginatorKeyFile> to <AssemblyOriginatorKeyFile>..\..\keys.snk</AssemblyOriginatorKeyFile> in my case. The VS 2005 GUI needs to be fixed to respect that, because it just shows a blank! But, it works correctly when compiling .
# June 1, 2005 2:33 PM