Steps for Giving strong name to DLL
Example
This create HP.snk file in E:\hemant\practice\HP\bin\Debug folder.
Steps for Installing in GAC
Finding and Listing Processes in C#
Lengthy Operation Windows Form Patterns
When i tried to install dll in GAC i got some problem , plz help me. The error message is" Failure adding assembly to cache: The system cannot find file specified."
You can add references to another project using .net tab. Note: in last fig shows our dll file installed into GAC. but mine installed , but in that tab that file is not showing as like last fig
HI Hemant, I tried with steps you mentioned above, I got a warning "Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile' d:\Creations\MyAPP\MyApp\MyApp\Properties\AssemblyInfo.cs" I completed all steps but my dll is not found in "C:\Windows\Assembly". Please help me on this issue. Thanks. Amit.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
What if the dll I copy there isn't the same I registered on the GAC? Wouldn't that be a mess? Thanks