Open 0xced opened 1 year ago
Well, after reading a bit about strong naming I think it's not worth the hassle of adding strong naming to Serilog.Formatting.Log4Net
since it's completely ignored on .NET Core and .NET 5+. So it would only matter for .NET Framework which is slowly becoming obsolete.
I'll close the issue as evidently the docs are correct, as much as this behavior amazes me.
For .NET Core and .NET 5+, strong-named assemblies do not provide material benefits. The runtime never validates the strong-name signature, nor does it use the strong-name for assembly binding.
I'm debating whether it's worth the hassle trying to remove strong naming from .NET 8
❌ DO NOT add, remove, or change the strong naming key
The question about reusing the Serilog.snk key (vs using another one) still remains for someone who would publish a new Serilog contrib package targeting .NET Framework (or .NET Standard).
Checking a few packages, we can find all possible outcomes:
24c2f752a8e58a10
)SerilogContribStrongNames.csproj
Program.cs
And here is the result:
I'm considering adding a strong name key to Serilog.Formatting.Log4Net.
Does it matter which strong name key contrib packages are using?