From 7f88f8673415d49021cfe87316973ddc8e33d038 Mon Sep 17 00:00:00 2001 From: mgravell Date: Tue, 22 Sep 2026 22:45:18 +0100 Subject: [PATCH] Fully sign the StrongName assemblies on every platform 2.1.86 shipped Dapper.StrongName and Dapper.EntityFramework.StrongName with an all-zero strong-name signature, so they fail strong-name validation when loaded on .NET Framework. Comparing the shipped assemblies: 2.1.79 sig 128B, nonzero=127 real signature 2.1.86 sig 128B, nonzero=0 public-signed only Both projects carried true Public signing stamps the public key and sets the STRONGNAMESIGNED flag but writes no actual signature: the assembly claims to be strong-named and is not. .NET Core and later do not verify strong names, so only .NET Framework consumers see the failure. The condition never fired in practice because releases were packed by hand on Windows. release.yml now builds on ubuntu-latest, so it fires on every release - this is a regression introduced by #2230, not by anything in the signing setup. The condition is a legacy workaround from when Roslyn could not fully sign off Windows; it can now. Removing it rather than moving the release job to Windows fixes the cause instead of avoiding it, and keeps a Linux developer build honest too. Verified on Linux: a full Build.csproj pack produces real 128-byte signatures for every TFM of both packages. Dapper.snk is unchanged - untouched since the commit that added Dapper.StrongName - so the public key token is identical and this is a signature fix, not an identity change. Windows builds are unaffected: the condition was already false there. --- .../Dapper.EntityFramework.StrongName.csproj | 1 - Dapper.StrongName/Dapper.StrongName.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/Dapper.EntityFramework.StrongName/Dapper.EntityFramework.StrongName.csproj b/Dapper.EntityFramework.StrongName/Dapper.EntityFramework.StrongName.csproj index f016f490a..24d8b867a 100644 --- a/Dapper.EntityFramework.StrongName/Dapper.EntityFramework.StrongName.csproj +++ b/Dapper.EntityFramework.StrongName/Dapper.EntityFramework.StrongName.csproj @@ -7,7 +7,6 @@ net461 ../Dapper.snk true - true Dapper.EntityFramework.StrongName orm;sql;micro-orm enable diff --git a/Dapper.StrongName/Dapper.StrongName.csproj b/Dapper.StrongName/Dapper.StrongName.csproj index 705385fd6..0b5473b90 100644 --- a/Dapper.StrongName/Dapper.StrongName.csproj +++ b/Dapper.StrongName/Dapper.StrongName.csproj @@ -7,7 +7,6 @@ Sam Saffron;Marc Gravell;Nick Craver net461;netstandard2.0;net8.0;net10.0 true - true enable true $(DefineConstants);STRONG_NAME