Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

strongnamer

> 编程语言
Open source

Strong Namer Most applications in .NET [do not need to be strong named][1]. Strong names can also introduce pain because they end up requir…

338 stars0 likes2 views
WebsiteGitHub

About

Strong Namer Most applications in .NET [do not need to be strong named][1]. Strong names can also introduce pain because they end up requir…

Strong Namer

Most applications in .NET do not need to be strong named. Strong names can also introduce pain because they end up requiring binding redirects. Because of this, many OSS libraries do not strong name their assemblies.

Strong named assemblies that reference assemblies that aren't strong named are rejected by the .NET Framework (desktop app only restriction). So if for whatever reason you actually do need to strong name your project, you couldn't easily consume open source packages.

Strong Namer is a NuGet package which aims to change this. Simply install the StrongNamer NuGet package, and it will transparently and automatically sign the assemblies you reference as part of the build process.

Demo

Here's how to try Strong Namer out for yourself:

  • Create a new Console application
  • Add a strong name to the application
    • Go to the Signing tab of the project properties
    • Check "Sign the assembly"
    • In the key file dropdown, choose <New...>
    • Choose a key file name (ie "key.snk"), uncheck the password option, and click OK
  • Add a reference to the Octokit NuGet package
  • Replace Program class with the following code:
…
  • Start without debugging (CTRL+F5)

  • :disappointed:

  • Add a reference to the StrongNamer NuGet package

  • Start without debugging (CTRL+F5)

  • :sparkles: :fireworks: :smile: :fireworks: :sparkles:

How does it work?

The NuGet package includes an MSBuild targets file and task which hook into the build process and add a strong name to any references which aren't strong named just before they are passed to the compiler.

The task uses Mono.Cecil to do this. Credit goes to Nivot.StrongNaming for showing me how to do this.

Options

You can conditionally disable automated signing of unsigned packages by setting the "DisableStrongNamer" property to "true". This is particularly useful if you have a custom build configuration for your application (e.g., you only wish for unsigned packages to be autosigned in specific environments).

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言