Skip to content

Commit 4563a1c

Browse files
authoredApr 24, 2025··
Mention public signing in Strong Name docs (#45914)
1 parent 8731f33 commit 4563a1c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎docs/standard/library-guidance/strong-naming.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ You should strong name your open-source .NET libraries if their targets include
4343
4444
✔️ CONSIDER strong naming your library's assemblies.
4545

46-
✔️ CONSIDER adding the strong naming key to your source control system.
46+
✔️ CONSIDER adding the strong naming key pair (public + private) to your source control system.
4747

48-
> A publicly available key lets developers modify and recompile your library source code with the same key.
48+
> A publicly available key pair lets developers modify and recompile your library source code with the same key.
4949
>
50-
> You shouldn't make the strong naming key public if it has been used in the past to give special permissions in [partial-trust scenarios](/previous-versions/dotnet/framework/code-access-security/using-libraries-from-partially-trusted-code). Otherwise, you might compromise existing environments.
50+
> You shouldn't make the strong naming key pair public if it has been used in the past to give special permissions in [partial-trust scenarios](/previous-versions/dotnet/framework/code-access-security/using-libraries-from-partially-trusted-code). Otherwise, you might compromise existing environments.
51+
>
52+
> If you can't check in the public + private key pair, then check in the public key and use [public signing](../../csharp/language-reference/compiler-options/security.md#publicsign) for regular builds. Public signing still allows developers to recompile and use your library in most scenarios.
5153
5254
> [!IMPORTANT]
5355
> When the identity of the publisher of the code is desired, [Authenticode](/windows-hardware/drivers/install/authenticode) and [NuGet Package Signing](/nuget/create-packages/sign-a-package) are recommended. Code Access Security (CAS) should not be used as a security mitigation.

0 commit comments

Comments
 (0)
Please sign in to comment.