“Unable to find manifest signing certificate in the certificate store” - even when add new key

后端 未结 11 1233
旧时难觅i
旧时难觅i 2020-12-12 13:17

I cannot build projects with a strong name key signing - the message in the title always comes up.

Yes the project was initially copied over from another machine. Ho

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 13:43

    To sign an assembly with a strong name using attributes

    Open AssemblyInfo.cs (in $(SolutionDir)\Properties)

    the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute, specifying the name of the file or container that contains the key pair to use when signing the assembly with a strong name.

    add the following code:

    [assembly:AssemblyKeyFileAttribute("keyfile.snk")]
    

提交回复
热议问题