'Why isn't my assembly signed even after I specified it to be in properties

Why isn't my console application assembly digitally signed even after I specified it to be signed in the project properties?

enter image description here



Solution 1:[1]

Because strong name signing and code signing are different things. Only the later causes the Digital Signature tab to appear in Windows Explorer executable file properties window while what you do is the former.

The text of "Sign you assembly" checkbox in Visual Studio may indeed be a little misleading as it doesn't specify the type of signing it regards to. The whole weight of that clarification lays on the combobox' label below saying "Choose a strong name key file".

See:
Signing of .NET Assemblies
and
difference between signtool and sn or al for assembly signing

Solution 2:[2]

Try strong naming as assembly (I haven't tested it so might not work):

  • In Visual Studio, navigate to AssemblyInfo.cs.

  • Add this code below underneath the 'AssemblyFileVersion()' one.

[assembly: AssemblyKeyFile("C:\\ConsoleApp1.exe")]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 NC101