Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strong Name in Visual Studio.NET

Status
Not open for further replies.

nbruckelmyer

Programmer
May 28, 2003
6
US
I have a class library and I want to assign a strong name through Visual Studio. When I select properties from my project, the Strong Name section is not available in my Property Pages. Anyone know why this is happening.

Thanks.
 
nbruckmeyer,

In order to strong name your assembly you need to first create a key pair for the assmelby by using the visual studio command prompt. here is the link from the msdn VS help.
ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconcreatingkeypairforuseincreatingstrongly-namedassembly.htm

once you have created the key pair you need to add this line into the assemblyInfo file.
<Assembly: AssemblyKeyFileAttribute(&quot;\\corp-fileserver\common\apps\PJ_COMMON_DLLs\Keys\LURMaintenance.snk&quot;)>

That is the path to where you have the key file that you created in the previous process.
Hope this Helps,
Bueller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top