Solved

How do I strongly name an assembly

Posted on 2013-02-05
2
400 Views
Last Modified: 2013-02-06
I am trying to create a strongly named assembly for a dll in vb.net
3.5 and visual studio 2008 so that I can place it in the GAC. I have
tried reading the documentation on the web but I am still facing
issues. I am not sure what module name is when using al.exe. For my
simplist dll it has a single .vb file which contains one class called
gberror. It has one method called raise. Is the module name al.exe is
referring to gberror.raise? When I try to add the dll to the gac it
says it must be strongly named. Any help would be appreciated.

Thanks, Greg
0
Comment
Question by:gregoryew2
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 38858444
You do not need to use any external tool to sign an assembly, it can be done from inside Visual Studio. I am in VS2012, but I do not remember that thing to have changed since 2008.

Project...Properties...Signing tab

Check Sign the Assembly

Under Choose a strong name key, go for New.

Give a file name, Protect with a password (some features do not work with a key without a password) and make sure to take note of it. Use the default algorithm.

Click OK and you are done.

This will create a file with a .pfx extension in your project directory and add the necessary information in the project so that the compiler will use that file to sign your assembly automatically.

It is very important to keep a copy of that file and remember password. You won't be able to update your .dll if you ever use another signature.

If you have other projects that you want to sign, always reuse the same signature file by selecting Browse instead of New when you want to sign a project for the first time. If you use different files, you will eventually mix them up and risk having problems updating applications and dlls.
0
 

Author Comment

by:gregoryew2
ID: 38859644
Thanks very much for the help JamesBurger.  It worked.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question