[AssemblyKeyFile] C# with Example
Whenever we want our assembly to install in GAC then it is must to have a strong name. For strong naming
assembly we have to create a public key. To generate the .snk ﬁle.
To create a strong name key ﬁle
1. Developers command prompt for VS2015 (with administrator Access)
2. At the command prompt, type cd C:\Directory_Name and press ENTER.
3. At the command prompt, type sn -k KeyFileName.snk, and then press ENTER.
once the keyFileName.snk is created at speciﬁed directory then give refernce in your project . give
AssemblyKeyFileAttribute attribute the path to snk ﬁle to generate the key when we build our class library.
Properties -> AssemblyInfo.cs
Thi will create a strong name assembly after build. After creating your strong name assembly you can then install it
Happy Coding :)