Why to Sign the Assembly - C# Coding Standard 2

We need Sign the assembly before build to create strongly named key file.

There are couple of advantages by sign the Assembly. Those are

  • The Assembly can be deployed to Global assembly cache (GAC)

  • Another most important reason is to avoid spoofing

To sign the assembly, right click on the project and select Signing. In this section, select Sign the assembly checkbox.

After selecting the checkbox, select strong name key file and New option. Enter file name and password for your strong key file.

Build the application and when you try to install the application, it installs with strong key file.