|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Strong namingHi
I have a class project which generates a dll which I would like to install in the gac. When I build the project, I get the following error; Unable to build assembly XXX into the Global Assembly Cache; the assembly is not strongly named. What do I need to do to get the assembly strongly named? Thanks Regards "John" <John@nospam.infovis.co.uk> schrieb
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconworkingwithstrongly-namedassemblies.asp
> Hi > > I have a class project which generates a dll which I would like to > install in the gac. When I build the project, I get the following > error; > > Unable to build assembly XXX into the Global Assembly Cache; the > assembly is not strongly named. > > What do I need to do to get the assembly strongly named? Armin > What do I need to do to get the assembly strongly named? Any assembly that you want to put into the GAC is required to have a "Strong Name". Here's how to do it: In your Visual Studio .NET -> Tools program group launch a Visual Studio ..NET 2003 Command Prompt. Then do this to see the command syntax: sn /? To generate a Strong Name Key, do this: sn -k MyAssemblyName.snk Then put that file in your project directory (where your source code is) Then open up your project's AssemblyInfo file and add this: <Assembly:AssemblyKeyFileAttribute("MyAssemblyName.snk")> (You may have to monkey around with the relative path of the filename inside the attribute.) In MSDN Library, goto the index tab and goto "strong-named assemblies" -- Show quoteHide quotePeace & happy computing, Mike Labosh, MCSD "Mr. McKittrick, after very careful consideration, I have come to the conclusion that this new system SUCKS." -- General Barringer, "War Games" "John" <John@nospam.infovis.co.uk> wrote in message news:%23Eognv1eFHA.2128@TK2MSFTNGP14.phx.gbl... > Hi > > I have a class project which generates a dll which I would like to install > in the gac. When I build the project, I get the following error; > > Unable to build assembly XXX into the Global Assembly Cache; the assembly > is not strongly named. > > > Thanks > > Regards > > > I think this is what you really need:
http://support.microsoft.com/default.aspx?scid=kb;en-us;315682 http://support.microsoft.com/default.aspx?scid=kb;en-us;324168 Crouchie1998 BA (HONS) MCP MCSE
How to compare objects using their typecode
"Handles" Question code generator received malformed input vb.net Threading Question SortedList question Registry Key Permissions C# supports pointer. Circular References... detect mouse leaves control can you create one "MouseEnter" event handler for multiple controls on a form? |
|||||||||||||||||||||||