Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I strongly name an assembly

Posted on 2013-02-05
2
Medium Priority
?
405 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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 …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

715 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