What is GAC? What are the steps to create an assembly and add it to the GAC?
2213
25-Oct-2010
Pushpendra Singh
30-Oct-2010Steps
- Create a strong name using sn.exe tool eg: sn -k mykey.snk
- in AssemblyInfo.cs, add the strong name eg: [assembly: AssemblyKeyFile("mykey.snk")]
- recompile project, and then install it to GAC in two ways :
• drag & drop it to assembly folder (C:\WINDOWS\assembly OR C:\WINNT\assembly) (shfusion.dll tool)
• gacutil -i abc.dll