Solved

How do I strongly name an assembly

Posted on 2013-02-05
2
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

630 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